Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 4229 | Differences between
and this patch

Collapse All | Expand All

(-)emerge.org (-1 / +11 lines)
Lines 970-975 Link Here
970
	
970
	
971
	def display(self,mylist):
971
	def display(self,mylist):
972
		changelogs=[]
972
		changelogs=[]
973
		allmyprint=[]
973
		for x in mylist:
974
		for x in mylist:
974
			#print x
975
			#print x
975
			if x[0]=="blocks":
976
			if x[0]=="blocks":
Lines 1072-1078 Link Here
1072
						myprint=myprint+myoldbest+"  "+iuse
1073
						myprint=myprint+myoldbest+"  "+iuse
1073
					else:
1074
					else:
1074
						myprint="["+x[0]+" "+addl+"] "+darkgreen(x[2])+" "+myoldbest+" "+iuse
1075
						myprint="["+x[0]+" "+addl+"] "+darkgreen(x[2])+" "+myoldbest+" "+iuse
1075
				print myprint
1076
				mygraph = self.digraph.copy()
1077
				indent=""
1078
				for a in range(0,mygraph.depth(string.join(x))):
1079
					indent=indent+"-"
1080
1081
				allmyprint.append(indent+myprint)
1076
1082
1077
			mysplit=portage.pkgsplit(x[2])
1083
			mysplit=portage.pkgsplit(x[2])
1078
			# XXX mysplit _can_ be None.... Why?
1084
			# XXX mysplit _can_ be None.... Why?
Lines 1095-1100 Link Here
1095
							print
1101
							print
1096
			del mysplit
1102
			del mysplit
1097
1103
1104
		allmyprint.reverse()
1105
		for x in allmyprint:
1106
			print x
1107
1098
 		if "--changelog" in myopts:
1108
 		if "--changelog" in myopts:
1099
 			print
1109
 			print
1100
 			for revision,text in changelogs:
1110
 			for revision,text in changelogs:
(-)portage.py.org (-1 / +8 lines)
Lines 369-375 Link Here
369
		for x in self.okeys:
369
		for x in self.okeys:
370
			if self.dict[x][0]==0:
370
			if self.dict[x][0]==0:
371
				return x
371
				return x
372
		return None 
372
		return None
373
374
	def depth(self, mykey):
375
		depth=0
376
		while (self.dict[mykey][1]):
377
			depth=depth+1
378
			mykey=self.dict[mykey][1][0]
379
		return depth
373
380
374
	def allzeros(self):
381
	def allzeros(self):
375
		"returns all nodes with zero references, or NULL if no such node exists"
382
		"returns all nodes with zero references, or NULL if no such node exists"

Return to bug 4229