From 84cb846906bf92bead8338c463db1513ac85310b Mon Sep 17 00:00:00 2001 From: Manu Bretelle Date: Oct 17 2022 17:07:41 +0000 Subject: [lookaside_upload_sig] Fix log message to reflect reality The log message was reporting sha1sum regardless of what actualy shaX was used. Tested by uploading a new src to the lookaside ``` ../centos-git-common/lookaside_upload_sig -f createrepo_c-0.20.1.tar.gz -n createrepo_c Base URL set to default: https://git.centos.org [+] CentOS Lookaside upload tool -> Checking if file already uploaded [+] CentOS Lookaside upload tool -> Initialing new upload to lookaside [+] CentOS Lookaside upload tool -> URL : https://git.centos.org [+] CentOS Lookaside upload tool -> Source to upload : createrepo_c-0.20.1.tar.gz [+] CentOS Lookaside upload tool -> Hash parameter : sha512 [+] CentOS Lookaside upload tool -> Package name: createrepo_c [+] CentOS Lookaside upload tool -> sha512sum: 54a2cc7c7cd3f3b9a0c23cd8c136ae1331e7fa7cc995189088e7e6f2276c78b2b84e21c2a2b93f4528b5e9e4018dd6525262c8aaba3bc8a1412a51dfafd101f7 [+] CentOS Lookaside upload tool -> ====== Trying to upload ======= File createrepo_c-0.20.1.tar.gz size 614968 CHECKSUM 54a2cc7c7cd3f3b9a0c23cd8c136ae1331e7fa7cc995189088e7e6f2276c78b2b84e21c2a2b93f4528b5e9e4018dd6525262c8aaba3bc8a1412a51dfafd101f7 stored OK [+] CentOS Lookaside upload tool -> Validating that source was correctly uploaded .... [+] CentOS Lookaside upload tool -> [SUCCESS] Source should be available at https://git.centos.org/sources/createrepo_c/createrepo_c-0.20.1.tar.gz/sha512/54a2cc7c7cd3f3b9a0c23cd8c136ae1331e7fa7cc995189088e7e6f2276c78b2b84e21c2a2b93f4528b5e9e4018dd6525262c8aaba3bc8a1412a51dfafd101f7/createrepo_c-0.20.1.tar.gz ``` --- diff --git a/lookaside_upload_sig b/lookaside_upload_sig index 5b30e9e..ab12641 100755 --- a/lookaside_upload_sig +++ b/lookaside_upload_sig @@ -91,7 +91,7 @@ f_log "URL : $lookaside_baseurl" f_log "Source to upload : ${file} " f_log "Hash parameter : ${hash_parameter}" f_log "Package name: $pkgname" -f_log "sha1sum: ${checksum}" +f_log "${hash_parameter}sum: ${checksum}" f_log " ====== Trying to upload =======" echo ""