[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#669142: apt: mirror method incorrectly passes architectures list



Package: apt
Version: 0.9.0
Tags: patch

Hi,

The URL to the mirror list, as generated by the mirror method, are missing 
an equal sign when passing the first architecture.
E.g. mirror.list?archi386&...

Cheers,
-- 
Raphael Geissert - Debian Developer
www.debian.org - get.debian.net
diff --git a/methods/mirror.cc b/methods/mirror.cc
index eb6d974..d6c5ba9 100644
--- a/methods/mirror.cc
+++ b/methods/mirror.cc
@@ -150,7 +150,7 @@ bool MirrorMethod::DownloadMirrorFile(string mirror_uri_str)
    for (std::vector<std::string>::const_iterator I = vec.begin();
         I != vec.end(); ++I)
       if (I == vec.begin())
-         fetch += "?arch" + (*I);
+         fetch += "?arch=" + (*I);
       else
          fetch += "&arch=" + (*I);
 

Reply to: