mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-12 23:51:08 +00:00
archive: fix DebianSourcePackage implementation of _source_urls()
This commit is contained in:
parent
f2b758f503
commit
7900a09763
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user