]> git.ipfire.org Git - pakfire.git/commitdiff
python: Fix undefined variable
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 22 Jan 2018 18:49:28 +0000 (19:49 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 22 Jan 2018 18:49:28 +0000 (19:49 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/pakfire/downloaders.py

index 5408af2f6f8cb8f34c881e7ca4e75ce23c0857ea..086bda7a2dd9f03f2f19e304a7fabf83b48109dd 100644 (file)
@@ -106,7 +106,7 @@ class RepositoryDownloader(Downloader):
                downloader = http.Client()
 
                # Download a new mirror list
-               mirrorlist = downloader.get(url, decode="json")
+               mirrorlist = downloader.get(self.repo.mirrorlist, decode="json")
 
                # Write new list to disk
                with self.repo.cache_open("mirrors", "w") as f: