From patchwork Thu Aug 2 22:40:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kamal Mostafa X-Patchwork-Id: 952991 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=canonical.com Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41hQBC00B8z9s8W; Fri, 3 Aug 2018 08:40:50 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1flMGx-0000w0-OO; Thu, 02 Aug 2018 22:40:43 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.86_2) (envelope-from ) id 1flMGt-0000uT-P4 for kernel-team@lists.ubuntu.com; Thu, 02 Aug 2018 22:40:39 +0000 Received: from 1.general.kamal.us.vpn ([10.172.68.52] helo=fourier) by youngberry.canonical.com with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.76) (envelope-from ) id 1flMGt-000542-Cy for kernel-team@lists.ubuntu.com; Thu, 02 Aug 2018 22:40:39 +0000 Received: from kamal by fourier with local (Exim 4.86_2) (envelope-from ) id 1flMGr-0002Tr-8E for kernel-team@lists.ubuntu.com; Thu, 02 Aug 2018 15:40:37 -0700 From: Kamal Mostafa To: kernel-team@lists.ubuntu.com Subject: [kteam-tools][PATCH v2 2/7] git-build-kernel: improve results summary for source packages Date: Thu, 2 Aug 2018 15:40:30 -0700 Message-Id: <1533249635-9483-3-git-send-email-kamal@canonical.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1533249635-9483-1-git-send-email-kamal@canonical.com> References: <1533249635-9483-1-git-send-email-kamal@canonical.com> X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" Add a 'debsign -r' cut-n-paste fragment. Be more explicit about which chroot is used. Signed-off-by: Kamal Mostafa --- 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