Relax dpkg version regex #19

Merged
josch merged 1 commit from tambre/mmdebstrap:dpkg_version_regex into main 2021-11-07 08:59:33 +00:00

1 commit

Author SHA1 Message Date
Raul Tambre
c61e81a244 Relax dpkg version regex
For non-release builds the version will include the number of commits since last release and the commit hash with dashes, e.g. 1.20.8-46-g0881.
For downstream distros it seems it may include their identification strings, e.g. 1.20.9ubuntu2.

Make the regex match everything after the version number to avoid incorrectly erroring on such versions.

Fixes #18
2021-11-06 23:04:27 +02:00