[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH v2 4/9] ts-xen-build: Make {xen|}dist.tar.gz only if $builddir/install/{$xen|}install



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 <konrad.wilk@xxxxxxxxxx>
---
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);
-- 
2.1.4


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.