relax apt version regex to allow devuan apt versions like 2.5.0devuan1

This commit is contained in:
Johannes Schauer Marin Rodrigues 2022-07-26 18:48:06 +02:00
parent 0ae0adde26
commit 35dc676394
Signed by: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -4451,7 +4451,7 @@ sub main() {
);
close $fh;
if ( $? == 0
and $content =~ /^apt ([0-9]+\.[0-9]+\.[0-9]+) \([a-z0-9-]+\)$/m) {
and $content =~ /^apt ([0-9]+\.[0-9]+\.[0-9]+)[a-z0-9]* \([a-z0-9-]+\)$/m) {
$aptversion = version->new($1);
}
if ($aptversion < "2.3.14") {