From patchwork Tue Dec 13 06:39:50 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Rzeszutek Wilk X-Patchwork-Id: 9471737 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D011E6021C for ; Tue, 13 Dec 2016 03:33:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C15C22808F for ; Tue, 13 Dec 2016 03:33:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B35A8284BF; Tue, 13 Dec 2016 03:33:04 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.2 required=2.0 tests=BAYES_00, DATE_IN_FUTURE_03_06, RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=no version=3.3.1 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.wl.linuxfoundation.org (Postfix) with ESMTPS id 599EA2808F for ; Tue, 13 Dec 2016 03:33:04 +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 1cGdnX-0004sX-3v; Tue, 13 Dec 2016 03:30:35 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cGdnV-0004rX-1x for xen-devel@lists.xenproject.org; Tue, 13 Dec 2016 03:30:33 +0000 Received: from [85.158.137.68] by server-17.bemta-3.messagelabs.com id AF/69-31715-85B6F485; Tue, 13 Dec 2016 03:30:32 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupikeJIrShJLcpLzFFi42KZM10+UDci2z/ CYEOXkMX3LZOZHBg9Dn+4whLAGMWamZeUX5HAmnH52D3GgvPsFZevnWVqYHzK2sXIxSEkMJFJ 4uXHk+wQzjdGiflt51i6GDmBnI2MEu0fayES3YwSHYv/sXUxcnCwCZhIvFnlCFIjImArca9xN iNImFmgSGLF/zqQsLBAqkTbxHNMIDaLgKrE6y0gnZwcvALuEofnHgIbLyEgJ3H++E9mEJtTwE Pi4/J7TCBjhIBq5sxMgigxlPi8cSnzBEa+BYwMqxjVi1OLylKLdI31kooy0zNKchMzc3QNDYz 1clOLixPTU3MSk4r1kvNzNzECQ4QBCHYwNn9xOsQoycGkJMprHuMfIcSXlJ9SmZFYnBFfVJqT WnyIUYaDQ0mCNz8LKCdYlJqeWpGWmQMMVpi0BAePkgjvxwygNG9xQWJucWY6ROoUozHHtGeLn zJxHHi/4imTEEtefl6qlDhvGsgkAZDSjNI8uEGwKLrEKCslzMsIdJoQT0FqUW5mCar8K0ZxDk YlYd4JIFN4MvNK4Pa9AjqFCeiU5/u8QU4pSURISTUwKso+qD0+SU3Zgbn33gE3u1gTlkVzNGp tKpeVMLDmPyvRqGN9q8Hht4dHaKpWwW6vtlkzWdTevc5e0BdoNuO/0U7eXp+alOU/69XadU4u L41cuuva7Jvmmlx5Px2KrNcKKlzT35jLnPLv0DnzoKu+qY6WKa+3LTmnJub1lV0+earni41d5 ZpKLMUZiYZazEXFiQBKJ1yCnQIAAA== X-Env-Sender: konrad.wilk@oracle.com X-Msg-Ref: server-11.tower-31.messagelabs.com!1481599830!44902156!1 X-Originating-IP: [156.151.31.81] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogMTU2LjE1MS4zMS44MSA9PiAyODgzMzk=\n X-StarScan-Received: X-StarScan-Version: 9.0.16; banners=-,-,- X-VirusChecked: Checked Received: (qmail 40920 invoked from network); 13 Dec 2016 03:30:31 -0000 Received: from userp1040.oracle.com (HELO userp1040.oracle.com) (156.151.31.81) by server-11.tower-31.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 13 Dec 2016 03:30:31 -0000 Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id uBD3USCL028109 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 13 Dec 2016 03:30:28 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id uBD3USDg008066 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 13 Dec 2016 03:30:28 GMT Received: from abhmp0018.oracle.com (abhmp0018.oracle.com [141.146.116.24]) by aserv0121.oracle.com (8.13.8/8.13.8) with ESMTP id uBD3UQkB009228; Tue, 13 Dec 2016 03:30:26 GMT Received: from osstest.dumpdata.com (/209.6.196.81) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 12 Dec 2016 19:30:25 -0800 From: Konrad Rzeszutek Wilk To: xen-devel@lists.xenproject.org, Ian.Jackson@eu.citrix.com Date: Tue, 13 Dec 2016 01:39:50 -0500 Message-Id: <1481611195-105372-5-git-send-email-konrad.wilk@oracle.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1481611195-105372-1-git-send-email-konrad.wilk@oracle.com> References: <1481611195-105372-1-git-send-email-konrad.wilk@oracle.com> X-Source-IP: userv0022.oracle.com [156.151.31.74] Cc: ross.lagerwall@citrix.com, Marcos.Matsunaga@oracle.com, Konrad Rzeszutek Wilk Subject: [Xen-devel] [PATCH v2 4/9] ts-xen-build: Make {xen|}dist.tar.gz only if $builddir/install/{$xen|}install 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: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP directories exist. This paves way for adding optional ways to stash other tarballs, such as the livepatch one (xentlpdist). Signed-off-by: Konrad Rzeszutek Wilk --- v2: New submission. --- ts-xen-build | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ts-xen-build b/ts-xen-build index 4f1f71a..f2c7105 100755 --- a/ts-xen-build +++ b/ts-xen-build @@ -204,9 +204,11 @@ END sub stash () { foreach my $part ('', 'xen') { - built_stash($ho, $builddir, - "xen/dist/${part}install", - "${part}dist"); + if (target_dir_exists($ho, "$builddir/xen/dist/${part}install")) { + built_stash($ho, $builddir, + "xen/dist/${part}install", + "${part}dist"); + } } built_stash_file($ho, $builddir, "xen-syms", "xen/xen/xen-syms", 1); built_stash_file($ho, $builddir, "xen-config", "xen/.config", 1);