mirror of
https://git.proxmox.com/git/debcargo-conf
synced 2025-04-28 13:09:51 +00:00
Do not do sponsored upload unless RFS exists
This commit is contained in:
parent
cddbf0e431
commit
0648565918
10
release.sh
10
release.sh
@ -95,6 +95,16 @@ if head -n1 "$PKGDIR/debian/changelog" | grep -qv UNRELEASED-FIXME-AUTOGENERATED
|
||||
" git push --delete origin $RELBRANCH"
|
||||
fi
|
||||
|
||||
CHANGEDBY=$(dpkg-parsechangelog -l $PKGDIR/debian/changelog -SMaintainer)
|
||||
if [ "$CHANGEDBY" != "$UPLOADER" ]; then
|
||||
cat <<eof
|
||||
Changes by $CHANGEDBY to be sponsored by $UPLOADER.
|
||||
eof
|
||||
if ! test -e $PKGDIR/debian/RFS; then
|
||||
abort 1 "Sponsored upload, but $PKGDIR/debian/RFS does not exist"
|
||||
fi
|
||||
fi
|
||||
|
||||
( cd "$PKGDIR"
|
||||
sed -i -e s/UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO/UNRELEASED/ debian/changelog
|
||||
if test -z "$DISTRO"; then
|
||||
|
@ -70,6 +70,7 @@ PKGDIR_REL="src/$PKGNAME"
|
||||
PKGDIR="$PWD/$PKGDIR_REL"
|
||||
BUILDDIR="$PWD/build/$PKGNAME"
|
||||
PKGCFG="$PKGDIR/debian/debcargo.toml"
|
||||
UPLOADER="${DEBFULLNAME:-$NAME} <${DEBEMAIL:-$EMAIL}>"
|
||||
|
||||
mkdir -p "$(dirname $BUILDDIR)"
|
||||
ln -srf "$PWD/build.sh" "$PWD/build/build.sh"
|
||||
|
Loading…
Reference in New Issue
Block a user