contrib: accept missing .sig file for older releases in "release.sh"

On older branches, the build script does not create a GPG signature of
the release tarball. Let the release script be graceful against that.
This commit is contained in:
Thomas Haller 2020-08-31 13:19:19 +02:00
parent e404585e60
commit 6b63b68a41
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -403,10 +403,13 @@ if [ -n "$BUILD_TAG" ]; then
RELEASE_FILE="NetworkManager-$TAR_VERSION.tar.xz"
test -f "./$RELEASE_FILE" \
&& test -f "./$RELEASE_FILE.sig" \
|| die "release file \"./$RELEASE_FILE\" not found"
cp "./$RELEASE_FILE" "./$RELEASE_FILE.sig" /tmp || die "failed to copy release tarball to /tmp"
cp "./$RELEASE_FILE" /tmp/ || die "failed to copy release tarball to /tmp"
if test -f "./$RELEASE_FILE.sig" ; then
cp "./$RELEASE_FILE.sig" /tmp/ || die "failed to copy signature for tarball to /tmp"
fi
git clean -fdx
fi