From 296e498fe90029370de25a9bb7f8525c402f4354 Mon Sep 17 00:00:00 2001 From: Alex Murray Date: Tue, 3 Aug 2021 10:39:55 +0930 Subject: [PATCH] archive: Fix PersonalPackageArchiveSourcePackage to yield URLs Yielding the result of super()_source_urls() / _binary_urls() yields the generator object itself which generates the list of URLs - not the URLs which would be returned from this generator. Instead use yield from which forwards the yield onto the generator object itself. Fixes LP: #1938659 Signed-off-by: Alex Murray --- ubuntutools/archive.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ubuntutools/archive.py b/ubuntutools/archive.py index 4efac42..3d7561e 100644 --- a/ubuntutools/archive.py +++ b/ubuntutools/archive.py @@ -674,14 +674,14 @@ class PersonalPackageArchiveSourcePackage(UbuntuSourcePackage): if self.getArchive().private: yield self._private_ppa_url(name) else: - yield super()._source_urls(name) + yield from super()._source_urls(name) def _binary_urls(self, name, bpph): "Generator of URLs for name" if self.getArchive().private: yield self._private_ppa_url(name) else: - yield super()._binary_urls(name, bpph) + yield from super()._binary_urls(name, bpph) class UbuntuCloudArchiveSourcePackage(PersonalPackageArchiveSourcePackage):