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

[Xen-devel] [OSSTEST PATCH v2 17/23] Debian.pm: debian_overlays: Internal default for tarball name



No functional change.

Signed-off-by: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
---
 Osstest/Debian.pm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Osstest/Debian.pm b/Osstest/Debian.pm
index 125d499..8e72405 100644
--- a/Osstest/Debian.pm
+++ b/Osstest/Debian.pm
@@ -821,6 +821,7 @@ sub debian_overlays ($$) {
     # calls $func->($local_dir, $tarball_leafname);
     my $maybe = sub {
        my ($local_dir, $tarball_leafname) = @_;
+       $tarball_leafname //= "$local_dir.tar";
        if (stat $local_dir) {
            $func->($local_dir, $tarball_leafname);
        } elsif ($! == ENOENT) {
@@ -830,7 +831,7 @@ sub debian_overlays ($$) {
        }
     };
     $maybe->($c{OverlayLocal}, 'overlay-local.tar');
-    $maybe->('overlay', 'overlay.tar');
+    $maybe->('overlay');
 }
 
 sub preseed_base ($$$;@) {
-- 
2.1.4


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

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