diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-12-28 13:58:16 -0800 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-12-28 14:01:36 -0800 |
commit | 3d527f71c1e43921392f5b09a751888198e8d861 (patch) | |
tree | fa605ab864a741de603ff3f12760b67248e444ce | |
parent | 81f83898ce768ac9daf0d50a1bc9deece839d805 (diff) | |
download | portage-3d527f71c1e43921392f5b09a751888198e8d861.tar.gz portage-3d527f71c1e43921392f5b09a751888198e8d861.tar.bz2 portage-3d527f71c1e43921392f5b09a751888198e8d861.zip |
fetch: fix listonly/allow_missing_digests logic
-rw-r--r-- | pym/portage/package/ebuild/fetch.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/pym/portage/package/ebuild/fetch.py b/pym/portage/package/ebuild/fetch.py index 3e6326a49..7d61e900b 100644 --- a/pym/portage/package/ebuild/fetch.py +++ b/pym/portage/package/ebuild/fetch.py @@ -532,7 +532,7 @@ def fetch(myuris, mysettings, listonly=0, fetchonly=0, orig_digests = mydigests.get(myfile, {}) - if not allow_missing_digests: + if not (allow_missing_digests or listonly): verifiable_hash_types = set(orig_digests).intersection(hashfunc_map) verifiable_hash_types.discard("size") if not verifiable_hash_types: @@ -551,9 +551,7 @@ def fetch(myuris, mysettings, listonly=0, fetchonly=0, writemsg(_("!!! Got: %s\n!!! Expected: %s\n") % \ (reason[1], reason[2]), noiselevel=-1) - if listonly: - continue - elif fetchonly: + if fetchonly: failed_files.add(myfile) continue else: |