]> err.no Git - dak/commit
Correct regex for 822 value fields that begin with a colon character
authorChris Lamb <lamby@debian.org>
Sun, 9 Aug 2009 03:22:04 +0000 (04:22 +0100)
committerChris Lamb <lamby@debian.org>
Sun, 9 Aug 2009 03:22:04 +0000 (04:22 +0100)
commitd7eb2f04ceaa42082294fe05a79e0bc77a817831
treef66f9bb14c22dc98291b9abc897c29106f987ba7
parentafb172175e405b9ba1804e0655ce64ac24a7b135
Correct regex for 822 value fields that begin with a colon character

Previously, we parsed "colon: :" => ("colon:", "") and "lol: :lol" =>
("lol:", "lol"). This commit changes these parses to ("colon", "") and
("lol", ":lol") respectfully.

Fields starting with colons can happen with values containing CVS
locations. eg:

  Vcs-Cvs: :ext:_anoncvs@anoncvs.mirbsd.org:/cvs contrib/hosted/tg/deb/makefs

(from /srv/ftp.debian.org/queue/new/makefs_20090808-1.dsc)

This is causing a traceback when examining this package as the regex to
strip the keys in read_changes_or_dsc(..) works differently to this one.

Signed-off-by: Chris Lamb <lamby@debian.org>
daklib/regexes.py