]> git.ipfire.org Git - location/location-database.git/commitdiff
Fix downloading databases in the default format
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 28 Sep 2019 19:01:23 +0000 (19:01 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 28 Sep 2019 19:01:23 +0000 (19:01 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
tools/downloader.py

index 56714ef395fafb44cab3ef6c1f5d7d990cdb1fc0..6cc738e94df6e86b3ee185486165ce8ee437eb68 100644 (file)
@@ -89,7 +89,10 @@ class DownloaderContext(object):
                        Makes the object iterable by going through each block
                """
                if self.return_blocks:
-                       return util.iterate_over_blocks(self.body)
+                       for b in util.iterate_over_blocks(self.body):
+                               yield b
+
+                       return
 
                # Store body
                body = self.body