#1063889 Parse package version string using ‘python3-debian’ class ‘debian.debian_support.Version’

#1063889#5
Date:
2024-02-14 06:28:50 UTC
From:
To:
The ‘dput.source_check’ function currently uses a custom regex pattern for
parsing a package version string. This pattern differs in some ways from
the official Debian Policy definition of a version string.

Instead of custom parsing, re-write the check to use the functionality
provided by the ‘python3-debian’ package. In ‘debian.debian_support’ is a
‘Version’ class whose constructor parses a package version string into the
defined structure of a Debian package version.

This will introduce a “Depends: python3-debian” relationship to this
package.

#1063889#10
Date:
2024-02-14 06:42:48 UTC
From:
To:
Thanks to Christoph Berg (‘myon’) for the motivation to report this bug.