Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 72265
Collapse All | Expand All

(-)emerge.old (-8 / +10 lines)
Lines 142-148 Link Here
142
"clean", "config", "depclean",
142
"clean", "config", "depclean",
143
"info",   "inject",   "metadata",
143
"info",   "inject",   "metadata",
144
"prune", "regen",  "rsync", "search",
144
"prune", "regen",  "rsync", "search",
145
"sync",  "system", "unmerge",  "world",
145
"sync",  "system", "unmerge",  "world", "all",
146
]
146
]
147
options=[
147
options=[
148
"--ask",
148
"--ask",
Lines 230-236 Link Here
230
				print
230
				print
231
				x="--sync"
231
				x="--sync"
232
			if myaction:
232
			if myaction:
233
				if myaction not in ["system", "world"]:
233
				if myaction not in ["system", "world", "all"]:
234
					myaction="--"+myaction
234
					myaction="--"+myaction
235
				print
235
				print
236
				print red("!!!")+green(" Multiple actions requested... Please choose one only.")
236
				print red("!!!")+green(" Multiple actions requested... Please choose one only.")
Lines 242-248 Link Here
242
			print "!!! Error:",x,"is an invalid option."
242
			print "!!! Error:",x,"is an invalid option."
243
			sys.exit(1)
243
			sys.exit(1)
244
	elif (not myaction) and (x in actions):
244
	elif (not myaction) and (x in actions):
245
		if x not in ["system", "world"]:
245
		if x not in ["system", "world", "all"]:
246
			#print red("*** Deprecated use of action '"+x+"'")
246
			#print red("*** Deprecated use of action '"+x+"'")
247
			if x=="rsync":
247
			if x=="rsync":
248
				# "emerge rsync"
248
				# "emerge rsync"
Lines 282-289 Link Here
282
																															 
282
																															 
283
"""
283
"""
284
284
285
if (myaction in ["world", "system"]) and myfiles:
285
if (myaction in ["world", "system", "all"]) and myfiles:
286
	print "emerge: please specify a package class (\"world\" or \"system\") or individual packages, but not both."
286
	print "emerge: please specify a package class (\"world\", \"system\" or \"all\") or individual packages, but not both."
287
	sys.exit(1)
287
	sys.exit(1)
288
288
289
for x in myfiles:
289
for x in myfiles:
Lines 581-587 Link Here
581
		pass
581
		pass
582
	elif (not myaction) and (not myfiles):
582
	elif (not myaction) and (not myfiles):
583
		pass
583
		pass
584
	elif ("--pretend" in myopts) and (myaction in ["world","system","clean","prune","unmerge"]):
584
	elif ("--pretend" in myopts) and (myaction in ["all","world","system","clean","prune","unmerge"]):
585
		pass
585
		pass
586
	else:
586
	else:
587
		if "--debug" in myopts:
587
		if "--debug" in myopts:
Lines 623-629 Link Here
623
	add.extend(["deep"])
623
	add.extend(["deep"])
624
if "--selective" in myopts:
624
if "--selective" in myopts:
625
	add.extend(["selective"])
625
	add.extend(["selective"])
626
if myaction in ["world","system"]:
626
if myaction in ["world","system","all"]:
627
	add.extend(["selective"])
627
	add.extend(["selective"])
628
elif myaction in ["depclean"]:
628
elif myaction in ["depclean"]:
629
	add.extend(["empty"])
629
	add.extend(["empty"])
Lines 801-806 Link Here
801
801
802
#build our package digraph
802
#build our package digraph
803
def getlist(mode):
803
def getlist(mode):
804
	if mode=="all":
805
		mylines=portage.vardbapi(portage.root).cp_all()
804
	if mode=="system":
806
	if mode=="system":
805
		mylines=portage.settings.packages
807
		mylines=portage.settings.packages
806
	elif mode=="world":
808
	elif mode=="world":
Lines 2897-2903 Link Here
2897
			sys.exit(0)
2899
			sys.exit(0)
2898
2900
2899
		mydepgraph=depgraph(myaction,myopts)
2901
		mydepgraph=depgraph(myaction,myopts)
2900
		if myaction in ["system","world"]:
2902
		if myaction in ["system","world","all"]:
2901
			print "Calculating",myaction,"dependencies  ",
2903
			print "Calculating",myaction,"dependencies  ",
2902
			sys.stdout.flush()
2904
			sys.stdout.flush()
2903
			if not mydepgraph.xcreate(myaction):
2905
			if not mydepgraph.xcreate(myaction):

Return to bug 72265