From patchwork Mon Apr 28 10:41:24 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Campbell X-Patchwork-Id: 29208 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pb0-f71.google.com (mail-pb0-f71.google.com [209.85.160.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 15CE2202FE for ; Mon, 28 Apr 2014 10:43:27 +0000 (UTC) Received: by mail-pb0-f71.google.com with SMTP id up15sf20899660pbc.2 for ; Mon, 28 Apr 2014 03:43:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:mime-version:cc:subject:precedence:list-id :list-unsubscribe:list-post:list-help:list-subscribe:sender :errors-to:x-original-sender:x-original-authentication-results :mailing-list:list-archive:content-type:content-transfer-encoding; bh=wEMflyDHxn3XtHaxVndoEUyyFDV/ARb7cqBgGYpAdXk=; b=V2CFY4u6kRUf8LZ64v7Z2zqF+YOvg4RT1/pWcWZjbWsfX1w9+1E6C01l4rn5qll7w0 me+UGwdyKgAcHlRkmUnTghgyqre2KnNaAAUK7BWuQJFucNCicxGwYW5hScVD42PYPMM1 7vDGFpGU8E6baJ5Ewwdayt6INLS6f53vJ4xEzxBSQ6LJ/LwM7vf9ChWWxgS8cOwOPnMm /C3W9bijj3URJ+D5+mLuoGgLjyZWX9t8ajFTm955D4LbUWNGnOGclaFlovt7cD+uKlrD zTZ+riCt7OY35EjCnVsWklzdwuq/0oUd0KVeeCXPZyLRmI6dYP/IDMNb/RNon03ugAhZ nSkQ== X-Gm-Message-State: ALoCoQmCRek+pndRWGrJm2daoS25mFfYyaOFWGowqleBFnW6cZ99AwmCh6D9CXImIiiC4strP4Ha X-Received: by 10.66.148.10 with SMTP id to10mr11170660pab.12.1398681807248; Mon, 28 Apr 2014 03:43:27 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.24.42 with SMTP id 39ls2555344qgq.26.gmail; Mon, 28 Apr 2014 03:43:27 -0700 (PDT) X-Received: by 10.220.103.141 with SMTP id k13mr2559597vco.25.1398681807085; Mon, 28 Apr 2014 03:43:27 -0700 (PDT) Received: from mail-vc0-f171.google.com (mail-vc0-f171.google.com [209.85.220.171]) by mx.google.com with ESMTPS id w5si3530106vcl.66.2014.04.28.03.43.27 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 28 Apr 2014 03:43:27 -0700 (PDT) Received-SPF: none (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) client-ip=209.85.220.171; Received: by mail-vc0-f171.google.com with SMTP id lg15so8069633vcb.30 for ; Mon, 28 Apr 2014 03:43:27 -0700 (PDT) X-Received: by 10.220.59.65 with SMTP id k1mr23045565vch.22.1398681807008; Mon, 28 Apr 2014 03:43:27 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp107092vcb; Mon, 28 Apr 2014 03:43:26 -0700 (PDT) X-Received: by 10.140.47.206 with SMTP id m72mr30340123qga.21.1398681806666; Mon, 28 Apr 2014 03:43:26 -0700 (PDT) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id q50si7602203qgd.147.2014.04.28.03.43.26 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 28 Apr 2014 03:43:26 -0700 (PDT) Received-SPF: none (google.com: xen-devel-bounces@lists.xen.org does not designate permitted sender hosts) client-ip=50.57.142.19; Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Wej0L-0007qA-8s; Mon, 28 Apr 2014 10:41:45 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Wej0J-0007oZ-5n for xen-devel@lists.xen.org; Mon, 28 Apr 2014 10:41:43 +0000 Received: from [85.158.139.211:37970] by server-16.bemta-5.messagelabs.com id A9/49-19700-6603E535; Mon, 28 Apr 2014 10:41:42 +0000 X-Env-Sender: Ian.Campbell@citrix.com X-Msg-Ref: server-15.tower-206.messagelabs.com!1398681700!979240!1 X-Originating-IP: [66.165.176.89] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni44OSA9PiAyMDMwMDc=\n X-StarScan-Received: X-StarScan-Version: 6.11.3; banners=-,-,- X-VirusChecked: Checked Received: (qmail 23658 invoked from network); 28 Apr 2014 10:41:41 -0000 Received: from smtp.citrix.com (HELO SMTP.CITRIX.COM) (66.165.176.89) by server-15.tower-206.messagelabs.com with RC4-SHA encrypted SMTP; 28 Apr 2014 10:41:41 -0000 X-IronPort-AV: E=Sophos;i="4.97,943,1389744000"; d="scan'208";a="125320427" Received: from accessns.citrite.net (HELO FTLPEX01CL02.citrite.net) ([10.9.154.239]) by FTLPIPO01.CITRIX.COM with ESMTP; 28 Apr 2014 10:41:40 +0000 Received: from ukmail1.uk.xensource.com (10.80.16.128) by smtprelay.citrix.com (10.13.107.79) with Microsoft SMTP Server id 14.3.181.6; Mon, 28 Apr 2014 06:41:39 -0400 Received: from kazak.uk.xensource.com ([10.80.2.80] helo=zakaz.uk.xensource.com) by ukmail1.uk.xensource.com with smtp (Exim 4.69) (envelope-from ) id 1Wej0E-0007ZY-Ee; Mon, 28 Apr 2014 11:41:39 +0100 Received: by zakaz.uk.xensource.com (sSMTP sendmail emulation); Mon, 28 Apr 2014 11:41:38 +0100 From: Ian Campbell To: Date: Mon, 28 Apr 2014 11:41:24 +0100 Message-ID: <1398681696-2773-3-git-send-email-ian.campbell@citrix.com> X-Mailer: git-send-email 1.9.0 In-Reply-To: <1398681672.29700.55.camel@kazak.uk.xensource.com> References: <1398681672.29700.55.camel@kazak.uk.xensource.com> MIME-Version: 1.0 X-DLP: MIA2 Cc: Ian Campbell , xen-devel@lists.xen.org Subject: [Xen-devel] [PATCH OSSTEST v2 03/15] mg-debian-installer-update: grab Xen PV domU capable images too X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Post: , List-Help: , List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ian.campbell@citrix.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Archive: Some test cases are going to want this, so they should be grabbed and versioned here. Signed-off-by: Ian Campbell Acked-by: Ian Jackson --- mg-debian-installer-update | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/mg-debian-installer-update b/mg-debian-installer-update index 452a2ad..7d24ed2 100755 --- a/mg-debian-installer-update +++ b/mg-debian-installer-update @@ -34,8 +34,8 @@ sbase=$site/dists/$suite case ${suite}_${arch} in *_i386|*_amd64) - src=$sbase/main/installer-$arch/current/images/netboot/debian-installer/$arch - files='initrd.gz linux' + src=$sbase/main/installer-$arch/current/images/netboot/ + files="debian-installer/$arch/initrd.gz:initrd.gz debian-installer/$arch/linux:linux xen/vmlinuz:vmlinuz-xen xen/initrd.gz:initrd.gz-xen" ;; lenny_armhf|squeeze_armhf) # No such thing. @@ -61,7 +61,9 @@ cd $dst for f in $files; do echo >&2 "fetching $f" - curl -s $src/$f >$f.new + s=${f/:*} ; d=${f/*:} + echo "$src/$s => $d.new" + curl -s $src/$s >$d.new done curl -s $pfile >Packages.bz2 @@ -131,7 +133,8 @@ if [ $arch = armhf ]; then fi for f in $files; do - mv -f $f.new $f + s=${f/:*} ; d=${f/*:} + mv -f $d.new $d done rm Packages.bz2