This is an automated email from the git hooks/post-receive script.

dod pushed a commit to branch master
in repository libconfig-model-dpkg-perl.

commit 403c4ae508d2e7c1fd329de53cf14aa55f1c300c
Author: Dominique Dumont <d...@debian.org>
Date:   Mon Mar 24 16:51:33 2014 +0100

    Dependency checker: use escape_uri on package name to build madison URL 
(Closes: #742302)
---
 lib/Config/Model/Dpkg/Dependency.pm | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/lib/Config/Model/Dpkg/Dependency.pm 
b/lib/Config/Model/Dpkg/Dependency.pm
index 6dde727..432a712 100644
--- a/lib/Config/Model/Dpkg/Dependency.pm
+++ b/lib/Config/Model/Dpkg/Dependency.pm
@@ -4,6 +4,7 @@ use 5.10.1;
 
 use Mouse;
 use namespace::autoclean;
+use URI::Escape;
 
 # Debian only module
 use lib '/usr/share/lintian/lib' ;
@@ -791,7 +792,7 @@ sub get_available_version {
         return ;
     } ;
 
-    my $url = 
"http://qa.debian.org/cgi-bin/madison.cgi?package=$pkg_name&text=on"; ;
+    my $url = 
"http://qa.debian.org/cgi-bin/madison.cgi?package=".uri_escape($pkg_name)."&text=on"
 ;
 
     push_cb($pkg_name,$callback);
 
@@ -849,7 +850,7 @@ sub cache_info_from_madison {
         return;
     }
 
-    my $url = 
"http://qa.debian.org/cgi-bin/madison.cgi?package=".join('+',@needed)."&text=on"
 ;
+    my $url = "http://qa.debian.org/cgi-bin/madison.cgi?package=".join('+',map 
{ uri_escape($_) } @needed)."&text=on" ;
     say "Connecting to qa.debian.org to check ", scalar @needed, " package 
versions. Please wait..." ;
 
     http_request(

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-perl/packages/libconfig-model-dpkg-perl.git

_______________________________________________
Pkg-perl-cvs-commits mailing list
Pkg-perl-cvs-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-perl-cvs-commits

Reply via email to