autoimport: fix regresion in url computation
authorHelmut Grohne <helmut@subdivi.de>
Sun, 13 Nov 2016 07:44:58 +0000 (08:44 +0100)
committerHelmut Grohne <helmut@subdivi.de>
Sun, 13 Nov 2016 07:44:58 +0000 (08:44 +0100)
The list path got inadvertently prepended to all binary package urls.

Fixes: 420804c25797 ("autoimport: improve fetching package lists")

autoimport.py

index c00dc4d..e51d052 100755 (executable)
@@ -26,8 +26,8 @@ from dedup.utils import open_compressed_mirror_url
 from readyaml import readyaml
 
 def process_http(pkgs, url, addhash=True):
-    url += "/dists/sid/main/binary-amd64/Packages"
-    with contextlib.closing(open_compressed_mirror_url(url)) as pkglist:
+    listurl = url + "/dists/sid/main/binary-amd64/Packages"
+    with contextlib.closing(open_compressed_mirror_url(listurl)) as pkglist:
         for pkg in deb822.Packages.iter_paragraphs(pkglist):
             name = pkg["Package"]
             if name in pkgs and \