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