mirror of
https://git.proxmox.com/git/debcargo-conf
synced 2025-08-15 15:10:42 +00:00
release.sh: fuck it, just auto-upload on RERELEASE, also highlight these in excuses
This commit is contained in:
parent
f440e6191e
commit
508cd1b3c4
@ -62,6 +62,7 @@ BG_NOT_IN_DEBIAN = "#cc0000"
|
|||||||
BG_OLD_IN_DEBIAN = "#ffcc66"
|
BG_OLD_IN_DEBIAN = "#ffcc66"
|
||||||
BG_TOO_NEW = "#66ff99"
|
BG_TOO_NEW = "#66ff99"
|
||||||
BG_MISC_FAIL = "#ff6666"
|
BG_MISC_FAIL = "#ff6666"
|
||||||
|
BG_SOURCEONLY = "#9999ff"
|
||||||
|
|
||||||
def traverse(name, arch="", d=0):
|
def traverse(name, arch="", d=0):
|
||||||
if name in already_seen:
|
if name in already_seen:
|
||||||
@ -121,7 +122,8 @@ def traverse(name, arch="", d=0):
|
|||||||
print(u, file=rust_regressions)
|
print(u, file=rust_regressions)
|
||||||
if failed:
|
if failed:
|
||||||
attrs.update({ "label": "\\N\\nfailed: %s" % ",".join(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())))
|
print_all('"%s" [%s]' % (name, ",".join("%s=\"%s\"" % p for p in attrs.items())))
|
||||||
|
|
||||||
|
|
||||||
|
33
release.sh
33
release.sh
@ -121,19 +121,22 @@ DEBVER=$(dpkg-parsechangelog -l $BUILDDIR/debian/changelog -SVersion)
|
|||||||
DEBSRC=$(dpkg-parsechangelog -l $BUILDDIR/debian/changelog -SSource)
|
DEBSRC=$(dpkg-parsechangelog -l $BUILDDIR/debian/changelog -SSource)
|
||||||
DEB_HOST_ARCH=$(dpkg-architecture -q DEB_HOST_ARCH)
|
DEB_HOST_ARCH=$(dpkg-architecture -q DEB_HOST_ARCH)
|
||||||
|
|
||||||
print_upload_instructions() {
|
|
||||||
if [ "$RERELEASE" = 1 ]; then
|
if [ "$RERELEASE" = 1 ]; then
|
||||||
|
|
||||||
|
( cd build && dput "${DEBSRC}_${DEBVER}_source.changes" )
|
||||||
|
git push origin "$RELBRANCH"
|
||||||
|
git checkout master
|
||||||
|
|
||||||
cat <<eof
|
cat <<eof
|
||||||
Upload the source package
|
Source-only re-release of $CRATE uploaded. You need to perform the following steps:
|
||||||
=========================
|
|
||||||
|
|
||||||
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
|
|
||||||
eof
|
eof
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
||||||
cat <<eof
|
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
|
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
|
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.
|
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
|
Push this pending-release branch
|
||||||
================================
|
================================
|
||||||
@ -175,6 +169,11 @@ master to continue development on other packages.
|
|||||||
|
|
||||||
git push origin $RELBRANCH && git checkout master
|
git push origin $RELBRANCH && git checkout master
|
||||||
|
|
||||||
|
eof
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
|
cat >&2 <<eof
|
||||||
Merge the pending-release branch if/when ACCEPTED
|
Merge the pending-release branch if/when ACCEPTED
|
||||||
=================================================
|
=================================================
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user