release.sh: fuck it, just auto-upload on RERELEASE, also highlight these in excuses

This commit is contained in:
Ximin Luo 2020-01-27 22:22:14 +00:00
parent f440e6191e
commit 508cd1b3c4
2 changed files with 19 additions and 18 deletions

View File

@ -62,6 +62,7 @@ BG_NOT_IN_DEBIAN = "#cc0000"
BG_OLD_IN_DEBIAN = "#ffcc66"
BG_TOO_NEW = "#66ff99"
BG_MISC_FAIL = "#ff6666"
BG_SOURCEONLY = "#9999ff"
def traverse(name, arch="", d=0):
if name in already_seen:
@ -121,7 +122,8 @@ def traverse(name, arch="", d=0):
print(u, file=rust_regressions)
if failed:
attrs.update({ "label": "\\N\\nfailed: %s" % ",".join(failed) })
attrs.update({ "fillcolor": BG_MISC_FAIL, "style": "filled" })
bg = BG_SOURCEONLY if failed == ["builtonbuildd"] else BG_MISC_FAIL
attrs.update({ "fillcolor": bg, "style": "filled" })
print_all('"%s" [%s]' % (name, ",".join("%s=\"%s\"" % p for p in attrs.items())))

View File

@ -121,19 +121,22 @@ DEBVER=$(dpkg-parsechangelog -l $BUILDDIR/debian/changelog -SVersion)
DEBSRC=$(dpkg-parsechangelog -l $BUILDDIR/debian/changelog -SSource)
DEB_HOST_ARCH=$(dpkg-architecture -q DEB_HOST_ARCH)
print_upload_instructions() {
if [ "$RERELEASE" = 1 ]; then
( cd build && dput "${DEBSRC}_${DEBVER}_source.changes" )
git push origin "$RELBRANCH"
git checkout master
cat <<eof
Upload the source package
=========================
Since you set RERELEASE=1, this package is presumably already in Debian. Go
ahead and directly dput the source package.
cd build && dput ${DEBSRC}_${DEBVER}_source.changes
Source-only re-release of $CRATE uploaded. You need to perform the following steps:
eof
else
cat <<eof
Release of $CRATE ready as a source package in ${BUILDDIR#$PWD/}. You need to
perform the following steps:
Build the package if necessary, and upload
==========================================
@ -156,15 +159,6 @@ for setting up a build environment for release.
If the build fails e.g. due to missing Build-Dependencies you should revert
what I did (see below) and package those missing Build-Dependencies first.
eof
fi
}
cat >&2 <<eof
Release of $CRATE ready as a source package in ${BUILDDIR#$PWD/}. You need to
perform the following steps:
$(print_upload_instructions)
Push this pending-release branch
================================
@ -175,6 +169,11 @@ master to continue development on other packages.
git push origin $RELBRANCH && git checkout master
eof
fi
cat >&2 <<eof
Merge the pending-release branch if/when ACCEPTED
=================================================