From patchwork Tue Aug 17 15:47:17 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Gardner X-Patchwork-Id: 61924 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 BDB86B7112 for ; Wed, 18 Aug 2010 01:47:30 +1000 (EST) Received: from localhost ([127.0.0.1] helo=chlorine.canonical.com) by chlorine.canonical.com with esmtp (Exim 4.69) (envelope-from ) id 1OlONo-00082E-9Z; Tue, 17 Aug 2010 16:47:24 +0100 Received: from mail.tpi.com ([70.99.223.143]) by chlorine.canonical.com with esmtp (Exim 4.69) (envelope-from ) id 1OlONm-000814-I7 for kernel-team@lists.ubuntu.com; Tue, 17 Aug 2010 16:47:22 +0100 Received: from [10.0.2.5] (unknown [10.0.2.5]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mail.tpi.com (Postfix) with ESMTP id C7AE225E5DB; Tue, 17 Aug 2010 08:47:09 -0700 (PDT) Message-ID: <4C6AAF05.30903@canonical.com> Date: Tue, 17 Aug 2010 09:47:17 -0600 From: Tim Gardner User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.11) Gecko/20100713 Thunderbird/3.0.6 MIME-Version: 1.0 To: Andy Whitcroft Subject: ubuntu-debian: Find ABI files according to their source package name Cc: Kernel team list X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.9 Precedence: list Reply-To: tim.gardner@canonical.com List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kernel-team-bounces@lists.ubuntu.com Errors-To: kernel-team-bounces@lists.ubuntu.com This patch helps find ABI files according to their source package name if the existing URLs (e.g. debian.linaro/etc/getabi) in the various branches end in 'linux' (which is likely _not_ the correct place). rtg From 929ef5caff4cbd5b8e89a9b8254872674f6d62e1 Mon Sep 17 00:00:00 2001 From: Tim Gardner Date: Tue, 17 Aug 2010 15:27:39 +0100 Subject: [PATCH] UBUNTU: [Config] Find ABI files according to their source package name Signed-off-by: Tim Gardner --- debian/scripts/misc/getabis | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/debian/scripts/misc/getabis b/debian/scripts/misc/getabis index 2a1fc55..44602a9 100755 --- a/debian/scripts/misc/getabis +++ b/debian/scripts/misc/getabis @@ -14,6 +14,8 @@ abi=$(echo $revision | awk -F. '{print $1}') verabi=$ver-$abi verfull=$ver-$revision +src_pkg_name=$(dpkg-parsechangelog -l${DEBIAN}/changelog|grep Source|sed 's/^.*Source: //') + WGET="wget --quiet -c" abidir="`pwd`/$DEBIAN/abi/$verfull" @@ -38,8 +40,9 @@ getall() { cd $tmpdir for r in "${repo_list[@]}" do + url="`echo $r | sed 's/linux$/'${src_pkg_name}'/'`" if ! [ -f $filename ]; then - $WGET $r/$filename + $WGET $url/$filename fi done if [ "$?" = "0" ]; then -- 1.7.0.4