Moved download into after the check

This commit is contained in:
2026-03-29 20:47:18 -04:00
parent d6c8879ca2
commit d6156ba6f7

View File

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