--- emerge.old 2004-11-18 04:20:11.000000000 +0100 +++ emerge 2004-11-21 12:57:21.128854032 +0100 @@ -142,7 +142,7 @@ "clean", "config", "depclean", "info", "inject", "metadata", "prune", "regen", "rsync", "search", -"sync", "system", "unmerge", "world", +"sync", "system", "unmerge", "world", "all", ] options=[ "--ask", @@ -230,7 +230,7 @@ print x="--sync" if myaction: - if myaction not in ["system", "world"]: + if myaction not in ["system", "world", "all"]: myaction="--"+myaction print print red("!!!")+green(" Multiple actions requested... Please choose one only.") @@ -242,7 +242,7 @@ print "!!! Error:",x,"is an invalid option." sys.exit(1) elif (not myaction) and (x in actions): - if x not in ["system", "world"]: + if x not in ["system", "world", "all"]: #print red("*** Deprecated use of action '"+x+"'") if x=="rsync": # "emerge rsync" @@ -282,8 +282,8 @@ """ -if (myaction in ["world", "system"]) and myfiles: - print "emerge: please specify a package class (\"world\" or \"system\") or individual packages, but not both." +if (myaction in ["world", "system", "all"]) and myfiles: + print "emerge: please specify a package class (\"world\", \"system\" or \"all\") or individual packages, but not both." sys.exit(1) for x in myfiles: @@ -581,7 +581,7 @@ pass elif (not myaction) and (not myfiles): pass - elif ("--pretend" in myopts) and (myaction in ["world","system","clean","prune","unmerge"]): + elif ("--pretend" in myopts) and (myaction in ["all","world","system","clean","prune","unmerge"]): pass else: if "--debug" in myopts: @@ -623,7 +623,7 @@ add.extend(["deep"]) if "--selective" in myopts: add.extend(["selective"]) -if myaction in ["world","system"]: +if myaction in ["world","system","all"]: add.extend(["selective"]) elif myaction in ["depclean"]: add.extend(["empty"]) @@ -801,6 +801,8 @@ #build our package digraph def getlist(mode): + if mode=="all": + mylines=portage.vardbapi(portage.root).cp_all() if mode=="system": mylines=portage.settings.packages elif mode=="world": @@ -2897,7 +2899,7 @@ sys.exit(0) mydepgraph=depgraph(myaction,myopts) - if myaction in ["system","world"]: + if myaction in ["system","world","all"]: print "Calculating",myaction,"dependencies ", sys.stdout.flush() if not mydepgraph.xcreate(myaction):