]> git.proxmox.com Git - pve-container.git/commitdiff
debian: recognize all stretch versions, translate buster/sid to 10
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 24 Jul 2017 06:49:44 +0000 (08:49 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 24 Jul 2017 07:11:46 +0000 (09:11 +0200)
src/PVE/LXC/Setup/Debian.pm

index 74393de101b62c254abd02296502f4c64ea2cb8e..5ffea9e028ff4611ec7f04d777e43274caa402ca 100644 (file)
@@ -19,8 +19,9 @@ sub new {
 
     die "unable to read version info\n" if !defined($version);
 
-    # translate stretch/sid => 9.0 (used on debian testing repository)
-    $version = 9.0 if $version eq 'stretch/sid';
+    # translate testing version names
+    $version = 9.1 if $version eq 'stretch/sid';
+    $version = 10 if $version eq 'buster/sid';
 
     die "unable to parse version info '$version'\n"
        if $version !~ m/^(\d+(\.\d+)?)(\.\d+)?/;
@@ -28,7 +29,7 @@ sub new {
     $version = $1;
 
     die "unsupported debian version '$version'\n"
-       if !($version >= 4 && $version <= 9);
+       if !($version >= 4 && $version <= 10);
 
     my $self = { conf => $conf, rootdir => $rootdir, version => $version };