diff options
author | Zac Medico <zmedico@gentoo.org> | 2011-09-14 22:30:46 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-09-14 22:30:46 -0700 |
commit | 01d4dde5a17648b8004e3633bf11ed945a0fa796 (patch) | |
tree | dc5983fe2da5875d47c312f48ae8e41b7935eb5c /pym/portage | |
parent | 70e7107bfb01225c0aac74ce32f66b1c3b0d4d2d (diff) | |
download | portage-01d4dde5a17648b8004e3633bf11ed945a0fa796.tar.gz portage-01d4dde5a17648b8004e3633bf11ed945a0fa796.tar.bz2 portage-01d4dde5a17648b8004e3633bf11ed945a0fa796.zip |
digestcheck: only show relevant msgs for thin
Diffstat (limited to 'pym/portage')
-rw-r--r-- | pym/portage/package/ebuild/digestcheck.py | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/pym/portage/package/ebuild/digestcheck.py b/pym/portage/package/ebuild/digestcheck.py index 38a3eba56..33f9cd6b0 100644 --- a/pym/portage/package/ebuild/digestcheck.py +++ b/pym/portage/package/ebuild/digestcheck.py @@ -38,15 +38,18 @@ def digestcheck(myfiles, mysettings, strict=False, justmanifest=None, mf=None): eout.quiet = mysettings.get("PORTAGE_QUIET", None) == "1" try: if strict and "PORTAGE_PARALLEL_FETCHONLY" not in mysettings: - eout.ebegin(_("checking ebuild checksums ;-)")) - mf.checkTypeHashes("EBUILD") - eout.eend(0) - eout.ebegin(_("checking auxfile checksums ;-)")) - mf.checkTypeHashes("AUX") - eout.eend(0) - eout.ebegin(_("checking miscfile checksums ;-)")) - mf.checkTypeHashes("MISC", ignoreMissingFiles=True) - eout.eend(0) + if mf.fhashdict.get("EBUILD"): + eout.ebegin(_("checking ebuild checksums ;-)")) + mf.checkTypeHashes("EBUILD") + eout.eend(0) + if mf.fhashdict.get("AUX"): + eout.ebegin(_("checking auxfile checksums ;-)")) + mf.checkTypeHashes("AUX") + eout.eend(0) + if mf.fhashdict.get("MISC"): + eout.ebegin(_("checking miscfile checksums ;-)")) + mf.checkTypeHashes("MISC", ignoreMissingFiles=True) + eout.eend(0) for f in myfiles: eout.ebegin(_("checking %s ;-)") % f) ftype = mf.findFile(f) |