[med-svn] r1488 - trunk/community/infrastructure/scripts
tille at alioth.debian.org
tille at alioth.debian.org
Sat Mar 1 09:54:01 UTC 2008
Author: tille
Date: 2008-03-01 09:54:00 +0000 (Sat, 01 Mar 2008)
New Revision: 1488
Modified:
trunk/community/infrastructure/scripts/cddtasktools.py
Log:
Fix the '&' problem (Thanks to Michael Bramer)
Modified: trunk/community/infrastructure/scripts/cddtasktools.py
===================================================================
--- trunk/community/infrastructure/scripts/cddtasktools.py 2008-03-01 02:55:33 UTC (rev 1487)
+++ trunk/community/infrastructure/scripts/cddtasktools.py 2008-03-01 09:54:00 UTC (rev 1488)
@@ -360,7 +360,8 @@
% stanza['wnpp']
elif key == 'Pkg-URL':
if dep != None:
- dep.pkgURL = stanza['pkg-url']
+ # Escape '&' in URLs with %3F (Trick stolen by pasting the URL into a search engine ;-))
+ dep.pkgURL = stanza['pkg-url'].replace("&", "%3F")
else:
print >>stderr, "Dep not initiated before Pkg-URL %s -> something is wrong." \
% stanza['pkg-url']
More information about the debian-med-commit
mailing list