Move source tar to separate directory and copy over if exists

This commit is contained in:
2026-03-29 21:07:33 -04:00
parent d6156ba6f7
commit 12416accb5
2 changed files with 5 additions and 4 deletions

View File

@@ -9,9 +9,10 @@ rpmdev-setuptree
dnf5 -y builddep $1
if [[ -f "~/rpmbuild/SOURCES/source.tar.gz" ]]; then
if [[ -f "~/rpmbuild/LOCALSOURCE/source.tar.gz" ]]; then
echo "--- Peaking inside source.tar.gz ---"
tar -rf ~/rpmbuild/SOURCES/source.tar.gz
tar -rf ~/rpmbuild/LOCALSOURCE/source.tar.gz
mv ~/rpmbuild/LOCALSOURCE/source.tar.gz ~/rpmbuild/SOURCES/source.tar.gz
else
echo "--- source.tar.gz not found ---"
echo "--- Download sources ---"