Package: dgit-infrastructure
Version: 9.13
Severity: important
X-Debbugs-Cc: [email protected]
Line 1109 of the dgit-repos-server script contains this code:
$version =~ y/_\%\#/:~/d;
When running into problems with version numbers containing '~' or ':' I
looked up the version mangling description of DEP-14, and it says for the
reverse transformation of the git tags:
* Each percent (%) is replaced with a colon (:)
* Each underscore (_) is replaced with a tilde (~)
* Each hash (#) is deleted
It seems to me that the mentioned line performs the first to replacements
exactly the other way round.
Using this line of code instead of the original fixes the problem for me:
$version =~ y/_\%\#/~:/d;
-- System Information:
Debian Release: 11.0
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'testing-debug'), (500,
'stable-debug'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1,
'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.10.0-6-amd64 (SMP w/12 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL
set to en_US.UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages dgit-infrastructure depends on:
ii chiark-utils-bin 6.1.2+nmu1
ii git [git-core] 1:2.31.1-1
ii gpgv 2.2.27-1
ii libdbd-sqlite3-perl 1.66-1+b1
ii libdpkg-perl 1.20.9
ii libjson-perl 4.03000-1
ii liblocale-gettext-perl 1.07-4+b1
ii perl [libdigest-sha-perl] 5.32.1-3
ii sqlite3 3.34.1-3
Versions of packages dgit-infrastructure recommends:
ii dgit 9.13
dgit-infrastructure suggests no packages.
-- no debconf information