diff options
author | Thomas Haller <thaller@redhat.com> | 2020-05-08 14:42:37 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2020-05-08 14:54:37 +0200 |
commit | 3f6f7b06c622145486d15fce177d9de1da2ae5a6 (patch) | |
tree | 08a2c7050da322e6199ac46c57e55223bbe83eca | |
parent | b533bef8cd768f90a651d176ca59ccc44a408ff6 (diff) | |
download | NetworkManager-3f6f7b06c622145486d15fce177d9de1da2ae5a6.tar.gz |
contrib/rpm: log MD5/SHA sums of release tarball during build_clean.sh
When doing a release, we should care about the checksum of the tarball.
Log all of them... also, because fedpkg uses sha512, ftpadmin@gnome uses
sha256, etc.
-rwxr-xr-x | contrib/fedora/rpm/build.sh | 7 | ||||
-rwxr-xr-x | contrib/fedora/rpm/build_clean.sh | 3 |
2 files changed, 10 insertions, 0 deletions
diff --git a/contrib/fedora/rpm/build.sh b/contrib/fedora/rpm/build.sh index f2c4cda18d..fa3aec7901 100755 --- a/contrib/fedora/rpm/build.sh +++ b/contrib/fedora/rpm/build.sh @@ -226,3 +226,10 @@ else LOG fi +if [[ "$DO_RELEASE" == 1 ]]; then + LOG "RELEASE \"$SOURCE\" :" + for c in md5 sha1 sha256 sha512; do + LOG "$(printf '%8s: %s' "$c" $("${c}sum" "$SOURCE" | sed 's/ .*//'))" + done + LOG +fi diff --git a/contrib/fedora/rpm/build_clean.sh b/contrib/fedora/rpm/build_clean.sh index e5eb3ea15e..776e4c4df6 100755 --- a/contrib/fedora/rpm/build_clean.sh +++ b/contrib/fedora/rpm/build_clean.sh @@ -44,6 +44,7 @@ NO_DIST=0 WITH_LIST=() SOURCE_FROM_GIT=0 SNAPSHOT="$NM_BUILD_SNAPSHOT" +DO_RELEASE=0 ADD_WITH_TEST=1 @@ -64,6 +65,7 @@ while [[ $# -gt 0 ]]; do [[ $NARGS -eq 1 ]] || die "--release option must be alone" export NMTST_CHECK_GTK_DOC=1 BUILDTYPE=SRPM + DO_RELEASE=1 ;; -c|--clean) GIT_CLEAN=1 @@ -173,6 +175,7 @@ export SOURCE_FROM_GIT export BUILDTYPE export NM_RPMBUILD_ARGS="${WITH_LIST[@]}" export SNAPSHOT +export DO_RELEASE "$SCRIPTDIR"/build.sh |