summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2020-08-31 13:19:19 +0200
committerThomas Haller <thaller@redhat.com>2020-08-31 13:20:24 +0200
commit6b63b68a414391330beda9e61d0e7657509826b2 (patch)
treebe2095995e7d496cb9cfb55dfcb655963c92d6b2 /contrib
parente404585e60a2b7a80be358d33862674d6d0a2505 (diff)
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.
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/fedora/rpm/release.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/contrib/fedora/rpm/release.sh b/contrib/fedora/rpm/release.sh
index b46d6cee5f..f803bbe50c 100755
--- a/contrib/fedora/rpm/release.sh
+++ b/contrib/fedora/rpm/release.sh
@@ -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