Fix the use of ._fetch() method not to use the return value. Since the code refactoring, it longer returns a boolean status. Instead, it raises an exception if fetching fails.
Fixes: https://bugs.gentoo.org/show_bug.cgi?id=549716 --- pym/portage/sync/modules/squashdelta/squashdelta.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pym/portage/sync/modules/squashdelta/squashdelta.py b/pym/portage/sync/modules/squashdelta/squashdelta.py index 6d956c6..cc303be 100644 --- a/pym/portage/sync/modules/squashdelta/squashdelta.py +++ b/pym/portage/sync/modules/squashdelta/squashdelta.py @@ -135,8 +135,7 @@ class SquashDeltaSync(SyncBase): else: delta_path = os.path.join(self.cache_location, expected_delta) - if not self._fetch(expected_delta, digests = my_digests): - raise SquashDeltaError() + self._fetch(expected_delta, digests = my_digests) if not self.has_bin: raise SquashDeltaError() -- 2.4.0