#771233 DDPO: dsc links in incoming are broken when package has an epoch

Package:
qa.debian.org
Source:
qa.debian.org
Submitter:
Jean-Michel Nirgal Vourgère
Date:
2014-11-27 21:33:04 UTC
Severity:
normal
#771233#5
Date:
2014-11-27 20:42:33 UTC
From:
To:
I have package xsoldier 1:1.8-4 in incoming.

The developer.php page give me a link to:
http://incoming.debian.org/debian-buildd/pool/main/x/xsoldier/xsoldier_1%3A1.8-4.dsc
while it should be:
http://incoming.debian.org/debian-buildd/pool/main/x/xsoldier/xsoldier_1.8-4.dsc


I started to trace the problem to data/ddpo/extract_incoming.pl, on line
112:

$db{"i${d}-url:$package"} =
"http://incoming.debian.org/debian-buildd/$directory/" . uri_escape
("${package}_$version.dsc");

I believe the fix is easy: Everything before ':' should be removed from
$version on that line.

#771233#10
Date:
2014-11-27 21:29:44 UTC
From:
To:
Patch attached should work.

I could not fully test it in context, because I lack the sql access, but
basic tests look ok.

Disclaimer: This is the second time I write something in perl. Please
review carefully, or rewrite in a proper perl style. ^^