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,13 +665,10 @@ class DebianSourcePackage(SourcePackage):
def _source_urls(self, name):
"Generator of sources for name"
wrapped_iterator = super(DebianSourcePackage, self)._source_urls(name)
while True:
try:
yield next(wrapped_iterator)
except StopIteration:
break
yield self.snapshot_files[name]
for url in super(DebianSourcePackage, self)._source_urls(name):
yield url
if name in self.snapshot_files:
yield self.snapshot_files[name]
def _binary_files_info(self, arch, name, ext):
for f in self.snapshot_package.getBinaryFiles(arch=arch, name=name, ext=ext):