Add section in script to peak inside source tar if exists

This commit is contained in:
2026-03-29 20:18:02 -04:00
parent f12d1f539b
commit 15a2826141

View File

@@ -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