Move source tar to separate directory and copy over if exists
This commit is contained in:
@@ -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 ---"
|
||||
|
||||
Reference in New Issue
Block a user