From 8f8f5bd706966261d2dcc104e6c26bfdf119ef11 Mon Sep 17 00:00:00 2001 From: Johannes Schauer Marin Rodrigues Date: Thu, 9 Feb 2023 10:20:25 +0100 Subject: [PATCH] relax apt version regex even further to be able to cope with versions like 2.5.3ubuntu0.1 --- mmdebstrap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mmdebstrap b/mmdebstrap index 2603418..cb2ab82 100755 --- a/mmdebstrap +++ b/mmdebstrap @@ -4713,7 +4713,7 @@ sub main() { ); close $fh; if ( $? == 0 - and $content =~ /^apt (\d+\.\d+\.\d+)\w* \(\S+\)$/am) { + and $content =~ /^apt (\d+\.\d+\.\d+)\S* \(\S+\)$/am) { $aptversion = version->new($1); } if ($aptversion < "2.3.14") {