[kteam-tools,v2,2/7] git-build-kernel: improve results summary for source packages

Message ID 1533249635-9483-3-git-send-email-kamal@canonical.com
State New
Headers show
Series
  • git-build-kernel: source pkg features
Related show

Commit Message

Kamal Mostafa Aug. 2, 2018, 10:40 p.m.
Add a 'debsign -r' cut-n-paste fragment.  Be more explicit about which
chroot is used.

Signed-off-by: Kamal Mostafa <kamal@canonical.com>
---
 git-build-kernel/git-build-kernel | 16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)

Patch

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