From: Zac Medico Date: Fri, 28 Mar 2008 12:59:23 +0000 (-0000) Subject: Bug #212509 - Display a note about the --without-mask option when there X-Git-Tag: v2.1.5~316 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=20e1130aea9e5ed261f9a3a7be40efdb1805559c;p=portage.git Bug #212509 - Display a note about the --without-mask option when there are masked packages. (trunk r9521) svn path=/main/branches/2.1.2/; revision=9574 --- diff --git a/bin/repoman b/bin/repoman index 18f4d7267..f1cb3016e 100755 --- a/bin/repoman +++ b/bin/repoman @@ -1104,6 +1104,7 @@ if isCvs: new_ebuilds.update(x for x in mynew if x.endswith(".ebuild")) del mycvstree, mynew +have_masked = False dofail = 0 arch_caches={} arch_xmatch_caches = {} @@ -1834,6 +1835,7 @@ for x in scanlist: ismasked = os.path.join(catdir, y) not in \ portdb.xmatch("list-visible", x) if ismasked: + have_masked = True if "--ignore-masked" in myoptions: continue #we are testing deps for a masked package; give it some lee-way @@ -1958,6 +1960,10 @@ def grouplist(mylist,seperator="/"): mygroups[xs[0]]+=[seperator.join(xs[1:])] return mygroups +if have_masked and not ("--without-mask" in myoptions or "--ignore-masked" in myoptions): + print bold("Note: use --without-mask to check " + \ + "KEYWORDS on dependencies of masked packages") + if mymode!="commit": if dofull: print bold("Note: type \"repoman full\" for a complete listing.")