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

(-)portage.py.orig (-1 / +10 lines)
Lines 3677-3682 Link Here
3677
		self.frozen=0
3677
		self.frozen=0
3678
		#overlays="overlay roots"
3678
		#overlays="overlay roots"
3679
		self.overlays=[]
3679
		self.overlays=[]
3680
        	self.local_keywords = {}  # {'cat/pkg-version': 'keywords'}
3681
		if os.path.exists('/etc/local_keywords'):
3682
			f = open('/etc/local_keywords', 'r')
3683
			for line in f.readlines():
3684
				cpv, keywords = line.split(None, 1)
3685
				self.local_keywords[cpv.strip()] = keywords.strip()
3686
			f.close()
3680
3687
3681
	def finddigest(self,mycpv):
3688
	def finddigest(self,mycpv):
3682
		try:
3689
		try:
Lines 3972-3978 Link Here
3972
		#finally, we look at our internal cache entry and return the requested data.
3979
		#finally, we look at our internal cache entry and return the requested data.
3973
		returnme=[]
3980
		returnme=[]
3974
		for x in mylist:
3981
		for x in mylist:
3975
			if self.auxcache[cat][pkg].has_key(x):
3982
			if x == 'KEYWORDS' and self.local_keywords.has_key(mycpv):
3983
				returnme.append(self.local_keywords[mycpv])
3984
			elif self.auxcache[cat][pkg].has_key(x):
3976
				returnme.append(self.auxcache[cat][pkg][x])
3985
				returnme.append(self.auxcache[cat][pkg][x])
3977
			else:
3986
			else:
3978
				returnme.append("")
3987
				returnme.append("")

Return to bug 36970