Compare commits

..

2 Commits

Author SHA1 Message Date
d6156ba6f7 Moved download into after the check 2026-03-29 20:47:18 -04:00
d6c8879ca2 Add output if source tar is not found 2026-03-29 20:29:22 -04:00

View File

@@ -9,12 +9,13 @@ rpmdev-setuptree
dnf5 -y builddep $1 dnf5 -y builddep $1
if [[ -f "~/rpmbuild/SOURCES/source.tar.gz" ]]; then
echo "--- Peaking inside source.tar.gz ---"
tar -rf ~/rpmbuild/SOURCES/source.tar.gz
else
echo "--- source.tar.gz not found ---"
echo "--- Download sources ---" echo "--- Download sources ---"
rpmdev-spectool -g -C ~/rpmbuild/SOURCES $1 rpmdev-spectool -g -C ~/rpmbuild/SOURCES $1
if [[ -f "~/rpmbuild/SOURCES/source.tar.gz" ]]; then
echo "--- Peaking inside source tar ---"
tar -rf ~/rpmbuild/SOURCES/source.tar.gz
fi fi
echo "--- Add patches ---" echo "--- Add patches ---"