From patchwork Tue Aug 14 09:09:28 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Bader X-Patchwork-Id: 177192 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from chlorine.canonical.com (chlorine.canonical.com [91.189.94.204]) by ozlabs.org (Postfix) with ESMTP id C66F52C0084 for ; Tue, 14 Aug 2012 19:09:41 +1000 (EST) Received: from localhost ([127.0.0.1] helo=chlorine.canonical.com) by chlorine.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1T1D7z-0001Zi-Ji; Tue, 14 Aug 2012 09:09:31 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by chlorine.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1T1D7x-0001ZZ-JO for kernel-team@lists.ubuntu.com; Tue, 14 Aug 2012 09:09:29 +0000 Received: from p5b2e2c3c.dip.t-dialin.net ([91.46.44.60] helo=canonical.com) by youngberry.canonical.com with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1T1D7x-0003xv-EG for kernel-team@lists.ubuntu.com; Tue, 14 Aug 2012 09:09:29 +0000 From: Stefan Bader To: kernel-team@lists.ubuntu.com Subject: Re: [Quantal v2] Enables getabis to use local package copies Date: Tue, 14 Aug 2012 11:09:28 +0200 Message-Id: <1344935368-5396-1-git-send-email-stefan.bader@canonical.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <20120814085519.GN29100@dm> References: <20120814085519.GN29100@dm> X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.13 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: kernel-team-bounces@lists.ubuntu.com Errors-To: kernel-team-bounces@lists.ubuntu.com about like that? -Stefan From c928e0a81a9be0d3f1fd8ab2f7eee2227ad6954a Mon Sep 17 00:00:00 2001 From: Stefan Bader Date: Tue, 14 Aug 2012 10:26:18 +0200 Subject: [PATCH] UBUNTU: (config) Enable getabis to use local package copies If a package is not (yet) uploaded into the archive it will be possible to place a copy of the .deb into the home directory and it will get picked up. This was one option of the external getabis script and surprisingly was actually used. Signed-off-by: Stefan Bader --- debian/scripts/misc/getabis | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/debian/scripts/misc/getabis b/debian/scripts/misc/getabis index c48199d..82f67a0 100755 --- a/debian/scripts/misc/getabis +++ b/debian/scripts/misc/getabis @@ -47,6 +47,13 @@ getall() { for prefix in $__package_prefixes do filename=${prefix}-${verabi}-${sub}_${verfull}_${arch}.deb + + # Take local copy if it is there... + if [ -f $HOME/$filename ]; then + echo -n "Locally!..." + cp $HOME/$filename . + fi + for r in "${repo_list[@]}" do if ! [ -f $filename ]; then