[kteam-tools][PATCH v2 2/7] git-build-kernel: improve results summary for source packages
Kamal Mostafa
kamal at canonical.com
Thu Aug 2 22:40:30 UTC 2018
Add a 'debsign -r' cut-n-paste fragment. Be more explicit about which
chroot is used.
Signed-off-by: Kamal Mostafa <kamal at canonical.com>
---
git-build-kernel/git-build-kernel | 16 ++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)
diff --git a/git-build-kernel/git-build-kernel b/git-build-kernel/git-build-kernel
index 44e38c8..6dd0792 100755
--- a/git-build-kernel/git-build-kernel
+++ b/git-build-kernel/git-build-kernel
@@ -131,10 +131,11 @@ trap "rm -rf $WORKDIR/building $BUILDDIR" 0
### run the standard debian/rules invocations like a pkgbuilder would
###
-echo "git-build-kernel ($CHROOT)"
-echo " version: $DISTRO ($VERSION)"
+echo "git-build-kernel"
+echo " package: $SRCPKG ($VERSION) $DISTRO"
echo " targets: $TARGETS"
echo " arch: $ARCH"
+echo " chroot: $CHROOT"
echo " starting build in $HOSTNAME:$WORKDIR ..."
function show_elapsed
@@ -214,10 +215,17 @@ echo " $HOSTNAME:$LOG"
# cat $LOG
-if [ $STATUS = 0 ]
+[ $STATUS != 0 ] && exit $STATUS
+
+if [ $do_source_pkg = 1 ]
then
+ changesfile=$(ls "$WORKDIR"/*_source.changes)
+ echo " source package files:"
+ echo " $HOSTNAME:${WORKDIR}"
+ echo " ready for debsign and upload:"
+ echo " debsign -r $HOSTNAME ${changesfile}"
+else
echo " binary packages:"
echo " $HOSTNAME:$WORKDIR/"
fi
-exit $STATUS
--
2.7.4
More information about the kernel-team
mailing list