From: Don Zickus <dzic...@redhat.com>

Fix tarball creation logic

The create tarball logic tried to determine if the tarball existed or
not by using a git sha.  However the check always failed because the
current sha was shortened and the tarball sha was the full 40 digits.

Correct this by converting the shortened sha into the full sha so the
comparison actually works.

Signed-off-by: Don Zickus <dzic...@redhat.com>

diff --git a/redhat/scripts/create-tarball.sh b/redhat/scripts/create-tarball.sh
index blahblah..blahblah 100755
--- a/redhat/scripts/create-tarball.sh
+++ b/redhat/scripts/create-tarball.sh
@@ -9,6 +9,9 @@ XZ_THREADS="--threads $RHJOBS"
 ARCH=$(arch)
 XZ_OPTIONS=""
 
+# convert from shortened git sha to standard 40 digit git sha
+_GITID="$(git rev-parse "$_GITID")"
+
 if [ "$ARCH" != "x86_64" ]
 then
         XZ_OPTIONS="-M 3G"

--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/2658
_______________________________________________
kernel mailing list -- kernel@lists.fedoraproject.org
To unsubscribe send an email to kernel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/kernel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to