From: Zac Medico Date: Mon, 12 Jun 2006 03:51:39 +0000 (-0000) Subject: Replace --include-masked with an inverse --ignore-masked option for bug #85576. X-Git-Tag: v2.1.1~498 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=474e2e3965bd41fe96958b844b38fec71466fa49;p=portage.git Replace --include-masked with an inverse --ignore-masked option for bug #85576. svn path=/main/trunk/; revision=3496 --- diff --git a/bin/repoman b/bin/repoman index 4125aa972..7fa7314d5 100755 --- a/bin/repoman +++ b/bin/repoman @@ -80,7 +80,7 @@ repoman_options={ "--commitmsgfile" : "Adds a commit message from the specified file", "--help" : "Show this screen", "--ignore-arches" : "Ignore arch-specific failures (where arch != host)", -"--include-masked" : "Include masked packages in scans at category or tree level", +"--ignore-masked" : "Ignore masked packages (not allowed with commit mode)", "--pretend" : "Don't commit or fix anything; just show what would be done", "--quiet" : "Be less verbose about extraneous info", "--verbose" : "Displays every package name while checking", @@ -89,7 +89,7 @@ repoman_options={ } repoman_shortoptions={ "-h" : "--help", -"-i" : "--include-masked", +"-i" : "--ignore-masked", "-I" : "--ignore-arches", "-m" : "--commitmsg", "-M" : "--commitmsgfile", @@ -381,8 +381,9 @@ if ("--version" in myoptions): show_version() if mymode=="last" or (mymode=="lfull"): last() -if mymode=="commit" and "--include-masked" not in myoptions: - myoptions.append("--include-masked") +if mymode == "commit": + while "--ignore-masked" in myoptions: + myoptions.remove("--ignore-masked") isCvs=False myreporoot=None @@ -508,9 +509,6 @@ if mymode == "commit" and repolevel not in [1,2,3]: print red("***") err("Unable to identify level we're commiting from for %s" % string.join(reposplit,'/')) -if repolevel == 3 and "--include-masked" not in myoptions: - myoptions.append("--include-masked") - startdir=os.getcwd() for x in range(0,repolevel-1): @@ -1132,7 +1130,7 @@ for x in scanlist: if not baddepsyntax: ismasked = (catdir+"/"+y not in portage.db["/"]["porttree"].dbapi.xmatch("list-visible",x)) if ismasked: - if "--include-masked" not in myoptions: + if "--ignore-masked" in myoptions: continue #we are testing deps for a masked package; give it some lee-way suffix="masked"