From 15a2826141018d5a9e1f012597d3a9de9aef65fc Mon Sep 17 00:00:00 2001 From: Eriq Taing Date: Sun, 29 Mar 2026 20:18:02 -0400 Subject: [PATCH] Add section in script to peak inside source tar if exists --- entrypoint.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/entrypoint.sh b/entrypoint.sh index 4d322a9..43c5066 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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