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

Collapse All | Expand All

(-)a/pym/portage/dbapi/porttree.py (-2 / +6 lines)
Lines 495-502 class portdbapi(dbapi): Link Here
495
		relative_path = mysplit[0] + _os.sep + psplit[0] + _os.sep + \
495
		relative_path = mysplit[0] + _os.sep + psplit[0] + _os.sep + \
496
			mysplit[1] + ".ebuild"
496
			mysplit[1] + ".ebuild"
497
497
498
		skip_access = (myrepo is not None and myrepo is getattr(mycpv, 'repo', None)
499
			and self is getattr(mycpv, '_db', None))
500
498
		for x in mytrees:
501
		for x in mytrees:
499
			filename = x + _os.sep + relative_path
502
			filename = x + _os.sep + relative_path
503
			if skip_access:
504
				return (filename, x)
500
			if _os.access(_unicode_encode(filename,
505
			if _os.access(_unicode_encode(filename,
501
				encoding=encoding, errors=errors), _os.R_OK):
506
				encoding=encoding, errors=errors), _os.R_OK):
502
				return (filename, x)
507
				return (filename, x)
Lines 644-650 class portdbapi(dbapi): Link Here
644
			future.set_exception(PortageKeyError(mycpv))
649
			future.set_exception(PortageKeyError(mycpv))
645
			return future
650
			return future
646
651
647
		myebuild, mylocation = self.findname2(mycpv, mytree)
652
		myebuild, mylocation = self.findname2(mycpv, mytree=mytree, myrepo=myrepo)
648
653
649
		if not myebuild:
654
		if not myebuild:
650
			writemsg("!!! aux_get(): %s\n" % \
655
			writemsg("!!! aux_get(): %s\n" % \
651
- 

Return to bug 650814