From: Thomas Lamprecht Date: Thu, 5 Apr 2018 07:29:26 +0000 (+0200) Subject: correctly check for devuan ascii suite X-Git-Url: https://git.proxmox.com/?p=dab.git;a=commitdiff_plain;h=77b1a1e94e26097f3496eeb9feae945740d7e789 correctly check for devuan ascii suite 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 [1]: https://forum.proxmox.com/threads/dab-version-3-0-8-ubuntu-16-04-issues.42685/ --- diff --git a/DAB.pm b/DAB.pm index dafae9f..b686141 100644 --- 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') {