Add section in script to peak inside source tar if exists
This commit is contained in:
@@ -12,6 +12,11 @@ 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 ---"
|
||||
tar -rf ~/rpmbuild/SOURCES/source.tar.gz
|
||||
fi
|
||||
|
||||
echo "--- Add patches ---"
|
||||
cp ~/rpmbuild/PATCHES/* ~/rpmbuild/SOURCES
|
||||
|
||||
|
||||
Reference in New Issue
Block a user