On Sun, Jul 19, 2015 at 13:48:14 +0200, Jakub Wilk wrote: > Package: debian-policy > Severity: wishlist > > Policy §5.6.12 reads: “The <upstream_version> may contain only alphanumerics > and the characters ‘.’ ‘+’ ‘-’ ‘:’ ‘~’ (full stop, plus, hyphen, colon, > tilde) and should start with a digit. […] if there is no <epoch> then colons > are not allowed.” > > But in practice: > > 1) There's been never a package with a colon in upstream_version in the > archive. > > 2) A colon in upstream_version implies a colon in the filename. Some > software might not tolerate such filenames; see bug #645895 for discussion. > > 3) dpkg in unstable won't even let you build a package with such version: > > $ head -n1 debian/changelog > adequate (1:1:1) UNRELEASED; urgency=low > $ dpkg-buildpackage -S > […] > dpkg-genchanges -S >../adequate_1:1_source.changes > dpkg-genchanges: error: invalid filename adequate_1:1.dsc > dpkg-buildpackage: error: dpkg-genchanges gave error exit status 255 > As far as I can tell, dak would reject such a filename, too (the commit message doesn't seem to consider colons as part of <upstream_version> at all): http://anonscm.debian.org/cgit/mirror/dak.git/tree/daklib/regexes.py#n134 http://anonscm.debian.org/cgit/mirror/dak.git/commit/?id=e86a4800
Cheers, Julien
signature.asc
Description: Digital signature