]> git.proxmox.com Git - dab.git/commitdiff
correctly check for devuan ascii suite
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 5 Apr 2018 07:29:26 +0000 (09:29 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 5 Apr 2018 07:29:37 +0000 (09:29 +0200)
commit b5583827a5dac915c61fcc539c15b20a380b0b29 introduced
support for Devuan 1 and 2 (ascii), the check for ascii wasn't
correct and thus always evaluated to true.

Reported-by: Joe Burleson [1]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
[1]: https://forum.proxmox.com/threads/dab-version-3-0-8-ubuntu-16-04-issues.42685/

DAB.pm

diff --git a/DAB.pm b/DAB.pm
index dafae9fd11823d50cd90ab1a8832dccf1108ad6e..b686141f153dbd41a90c44bfb30db090bc437073 100644 (file)
--- a/DAB.pm
+++ b/DAB.pm
@@ -334,7 +334,7 @@ sub new {
     } elsif ($suite eq 'devuan-jessie') {
        $suite = 'jessie';
        $config->{ostype} = "devuan-1.0";
-    } elsif ($suite eq 'devuan-ascii' || 'ascii') {
+    } elsif ($suite eq 'devuan-ascii' || $suite eq 'ascii') {
        $suite = 'ascii';
        $config->{ostype} = "devuan-2.0";
     } elsif ($suite eq 'hardy') {