From patchwork Mon Nov 16 17:47:24 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Whitcroft X-Patchwork-Id: 545098 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) by ozlabs.org (Postfix) with ESMTP id A557E141448; Tue, 17 Nov 2015 04:48:04 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.76) (envelope-from ) id 1ZyNso-0000E2-LL; Mon, 16 Nov 2015 17:48:02 +0000 Received: from mail-wm0-f52.google.com ([74.125.82.52]) by huckleberry.canonical.com with esmtp (Exim 4.76) (envelope-from ) id 1ZyNsS-0008W4-8o for kernel-team@lists.ubuntu.com; Mon, 16 Nov 2015 17:47:40 +0000 Received: by wmww144 with SMTP id w144so130220750wmw.0 for ; Mon, 16 Nov 2015 09:47:40 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=k9YnqHAZhcN6IrC25ZlvEFqN5QSAj0kdRYZRDU6rgbc=; b=F2BFYj5mk3K2yCnkAikMlgjuN4Wmoe6sB23LKkfSxSg+y01hoc6ZfHF5HB9fQ9HmEi ny7oukxSLwgJUr5IpyFSp4kEH5PwsNGY0ckIxyukJb8WZnsHT2lohNBCLxi91KmGdjV2 pdeoRagxk4SUldSO/EF+Kzd1vCCncLVUZTMtUoqPJYWQxvND384PyVW4niecdopwI8Hk canNcDrx8lbvCiyucREQvCcdmhe8X6LDeCwR3UWzdR/0ayTuAJXKvgyCMGQCWaGX+g4Z M3CewDaueWNc8yoNuZi66QtjU4a8LpjymNdfM8z6KEAwOtuxpR/Ydy6qUh+G/Bcv6dGO V0Gw== X-Gm-Message-State: ALoCoQmdJ9CHQRl1SVepIgbY07Dyqqf9GiARYjFJ96Sg4xhqFnBfFszG5HUep/Y4ZUgJ20EqW6vl X-Received: by 10.28.6.206 with SMTP id 197mr21676085wmg.102.1447696060005; Mon, 16 Nov 2015 09:47:40 -0800 (PST) Received: from localhost ([2001:470:6973:2:7530:aa29:ad:1068]) by smtp.gmail.com with ESMTPSA id q6sm15097201wmd.8.2015.11.16.09.47.39 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Nov 2015 09:47:39 -0800 (PST) From: Andy Whitcroft To: kernel-team@lists.ubuntu.com Subject: [trusty/lts-backport-utopic-next 3/3] UBUNTU: [Debian] rebuild should only trigger for non-linux packages Date: Mon, 16 Nov 2015 17:47:24 +0000 Message-Id: <1447696050-21914-6-git-send-email-apw@canonical.com> X-Mailer: git-send-email 2.6.2 In-Reply-To: <1447696050-21914-1-git-send-email-apw@canonical.com> References: <1447696050-21914-1-git-send-email-apw@canonical.com> Cc: Andy Whitcroft X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.14 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-bounces@lists.ubuntu.com BugLink: http://bugs.launchpad.net/bugs/1498862 BugLink: http://bugs.launchpad.net/bugs/1516686 Signed-off-by: Andy Whitcroft --- debian/tests/rebuild | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/debian/tests/rebuild b/debian/tests/rebuild index 8a99850..6f73b36c 100644 --- a/debian/tests/rebuild +++ b/debian/tests/rebuild @@ -1,3 +1,20 @@ #!/bin/sh + +# If we are triggering for just linux or linux-meta we know we have +# just built the kernel and there is no point in repeating that +# build, it just wastes time. (LP: #1498862) +build_needed=0 +for trigger in ${ADT_TEST_TRIGGERS:-force} +do + case "$trigger" in + linux/*|linux-lts-*/*|linux-meta*/*) ;; + *) build_needed=1 ;; + esac +done +if [ "$build_needed" -eq 0 ]; then + echo "rebuild: short circuiting build for '${ADT_TEST_TRIGGERS}'" + exit 0 +fi + set -e dpkg-buildpackage -rfakeroot -us -uc -b