From 35dc67639405bf9c60240e3942bc5002c9122b4b Mon Sep 17 00:00:00 2001 From: Johannes Schauer Marin Rodrigues Date: Tue, 26 Jul 2022 18:48:06 +0200 Subject: [PATCH] relax apt version regex to allow devuan apt versions like 2.5.0devuan1 --- mmdebstrap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mmdebstrap b/mmdebstrap index 91c40ff..18fe7d7 100755 --- a/mmdebstrap +++ b/mmdebstrap @@ -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") {