archive: fix DebianSourcePackage implementation of _source_urls()

This commit is contained in:
Dan Streetman 2020-01-24 17:20:05 -05:00
parent f2b758f503
commit 7900a09763

View File

@ -665,12 +665,9 @@ class DebianSourcePackage(SourcePackage):
def _source_urls(self, name): def _source_urls(self, name):
"Generator of sources for name" "Generator of sources for name"
wrapped_iterator = super(DebianSourcePackage, self)._source_urls(name) for url in super(DebianSourcePackage, self)._source_urls(name):
while True: yield url
try: if name in self.snapshot_files:
yield next(wrapped_iterator)
except StopIteration:
break
yield self.snapshot_files[name] yield self.snapshot_files[name]
def _binary_files_info(self, arch, name, ext): def _binary_files_info(self, arch, name, ext):