myparams = ["recurse"]
add=[]
sub=[]
- if "--update" in myopts or myaction in ("system", "world"):
- add.extend(["selective"])
- if "--noreplace" in myopts:
+ if "--update" in myopts or \
+ "--newuse" in myopts or \
+ "--noreplace" in myopts or \
+ myaction in ("system", "world"):
add.extend(["selective"])
if "--emptytree" in myopts:
add.extend(["empty"])
if ("--usepkgonly" in myopts) and not ("--usepkg" in myopts):
myopts["--usepkg"] = True
- if ("--newuse" in myopts) and not ("--update" in myopts):
- print ">>> --newuse implies --update... adding --update to options."
- myopts["--update"] = True
-
# Also allow -l to apply --pretend/-p, but if already in --ask mode
if ("--changelog" in myopts) and not (("--pretend" in myopts) or ("--ask" in myopts)):
print ">>> --changelog implies --pretend... adding --pretend to options."