From patchwork Fri Mar 18 17:09:12 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Jackson X-Patchwork-Id: 8622361 Return-Path: X-Original-To: patchwork-xen-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id C0390C0553 for ; Fri, 18 Mar 2016 17:12:03 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 04531202E9 for ; Fri, 18 Mar 2016 17:12:03 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2AF8620279 for ; Fri, 18 Mar 2016 17:12:02 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1agxu4-0006ns-Lb; Fri, 18 Mar 2016 17:09:36 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1agxu3-0006mm-Ca for xen-devel@lists.xenproject.org; Fri, 18 Mar 2016 17:09:35 +0000 Received: from [85.158.139.211] by server-1.bemta-5.messagelabs.com id 13/82-29419-E463CE65; Fri, 18 Mar 2016 17:09:34 +0000 X-Env-Sender: prvs=8782d2786=Ian.Jackson@citrix.com X-Msg-Ref: server-7.tower-206.messagelabs.com!1458320970!29859236!2 X-Originating-IP: [66.165.176.89] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni44OSA9PiAyMDMwMDc=\n, received_headers: No Received headers X-StarScan-Received: X-StarScan-Version: 8.11; banners=-,-,- X-VirusChecked: Checked Received: (qmail 62710 invoked from network); 18 Mar 2016 17:09:33 -0000 Received: from smtp.citrix.com (HELO SMTP.CITRIX.COM) (66.165.176.89) by server-7.tower-206.messagelabs.com with RC4-SHA encrypted SMTP; 18 Mar 2016 17:09:33 -0000 X-IronPort-AV: E=Sophos;i="5.24,356,1454976000"; d="scan'208";a="340273496" From: Ian Jackson To: Date: Fri, 18 Mar 2016 17:09:12 +0000 Message-ID: <1458320955-2556-4-git-send-email-ian.jackson@eu.citrix.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1458320955-2556-1-git-send-email-ian.jackson@eu.citrix.com> References: <1458320955-2556-1-git-send-email-ian.jackson@eu.citrix.com> MIME-Version: 1.0 X-DLP: MIA2 Cc: Ian Jackson Subject: [Xen-devel] [OSSTEST PATCH 3/6] mg-debian-installer-update: Use getconfig_TftpDiVersion_suite X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The computed value of the `tftpdiversion' shell variable is used only to see if it is equal to `current'; if so, we update it. Whether this is done should depend on the effective TftpDiVersion for the specific suite, not on the default global. So use getconfig_TftpDiVersion_suite. Signed-off-by: Ian Jackson --- mg-debian-installer-update | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mg-debian-installer-update b/mg-debian-installer-update index 7e3fb20..c969f1e 100755 --- a/mg-debian-installer-update +++ b/mg-debian-installer-update @@ -59,7 +59,7 @@ case ${suite}_${arch} in ;; esac -tftpdiversion=`getconfig TftpDiVersion` +tftpdiversion=`getconfig_TftpDiVersion_suite $suite` dstroot=`getconfig TftpPath`/`getconfig TftpDiBase`/ date=`date +%Y-%m-%d` dst=$arch/$date-$suite