mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-03-20 22:10:43 +01:00
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. (cherry picked from commit3f6f7b06c6) (cherry picked from commitba6642a478)
This commit is contained in:
parent
d79745a5e6
commit
c2260b3a1c
2 changed files with 10 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue