mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-10-14 20:18:39 +00:00
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:
parent
e404585e60
commit
6b63b68a41
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue