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

(-)python-updater-0.10.orig/python-updater (-3 / +4 lines)
Lines 145-151 Link Here
145
# has_version(cpv)
145
# has_version(cpv)
146
has_version() {
146
has_version() {
147
	if [[ "${PMS_COMMAND[${PMS_INDEX}]}" == "emerge" ]]; then
147
	if [[ "${PMS_COMMAND[${PMS_INDEX}]}" == "emerge" ]]; then
148
		"@GENTOO_PORTAGE_EPREFIX@"/usr/bin/portageq has_version / "${1}"
148
		"@GENTOO_PORTAGE_EPREFIX@"/usr/bin/portageq has_version \
149
                    "@GENTOO_PORTAGE_EPREFIX@"/ "${1}"
149
	elif [[ "${PMS_COMMAND[${PMS_INDEX}]}" == "pmerge" ]]; then
150
	elif [[ "${PMS_COMMAND[${PMS_INDEX}]}" == "pmerge" ]]; then
150
		pquery --vdb "${1}"
151
		pquery --vdb "${1}"
151
	else
152
	else
Lines 164-170 Link Here
164
165
165
import portage
166
import portage
166
167
167
dbapi = portage.db['/']['porttree'].dbapi
168
dbapi = portage.db['@GENTOO_PORTAGE_EPREFIX@/']['porttree'].dbapi
168
pkg_list = dbapi.match('${1}/${2}${3:+:}${3}')
169
pkg_list = dbapi.match('${1}/${2}${3:+:}${3}')
169
if pkg_list:
170
if pkg_list:
170
	best_visible = portage.best(pkg_list)
171
	best_visible = portage.best(pkg_list)
Lines 599-605 Link Here
599
for variable in variables:
600
for variable in variables:
600
	exec('%(variable)s_regex = re.compile(r\'^%(variable)s=\((.*)\)\')' % {'variable': variable})
601
	exec('%(variable)s_regex = re.compile(r\'^%(variable)s=\((.*)\)\')' % {'variable': variable})
601
602
602
dbapi = portage.db['/']['porttree'].dbapi
603
dbapi = portage.db['@GENTOO_PORTAGE_EPREFIX@/']['porttree'].dbapi
603
python_eclass_locations = {}
604
python_eclass_locations = {}
604
605
605
if hasattr(dbapi.repositories.mainRepo(), 'eclass_db'):
606
if hasattr(dbapi.repositories.mainRepo(), 'eclass_db'):

Return to bug 433499