Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(14)  |  Call(7)  |  Derive(0)  |  Import(7)

src/p/o/portage-funtoo-HEAD/pym/portage/_sets/dbapi.py   portage-funtoo(Download)
 
from portage import os
from portage.versions import best, catsplit, vercmp
from portage.dep import Atom
from portage.localization import _
	def _filter(self, atom):
		ebuild = best(self._metadatadb.match(atom))
		if not ebuild:
			return False
		values, = self._metadatadb.aux_get(ebuild, [self._variable])

src/p/o/portage-HEAD/pym/portage/_sets/dbapi.py   portage(Download)
 
from portage import os
from portage.versions import best, catsplit, vercmp
from portage.dep import Atom
from portage.localization import _
	def _filter(self, atom):
		ebuild = best(self._metadatadb.match(atom))
		if not ebuild:
			return False
		values, = self._metadatadb.aux_get(ebuild, [self._variable])

src/p/o/portage-HEAD/pym/_emerge/resolver/output.py   portage(Download)
from portage._sets.base import InternalPackageSet
from portage.util import writemsg_stdout
from portage.versions import best, cpv_getversion
 
from _emerge.Blocker import Blocker
				myoldbest = myinslotlist[:]
				if not cpvequal(pkg.cpv,
					best([pkg.cpv] + [x.cpv for x in myinslotlist])):
					# Downgrade in slot
					pkg_info.attr_display.new_version = True

src/p/o/portage-funtoo-HEAD/pym/portage/package/ebuild/_ipc/QueryCommand.py   portage-funtoo(Download)
from portage.package.ebuild._ipc.IpcCommand import IpcCommand
from portage.util import normalize_path
from portage.versions import best
 
class QueryCommand(IpcCommand):
			return ('', warnings_str, returncode)
		elif cmd == 'best_version':
			m = best(vardb.match(atom))
			return ('%s\n' % m, warnings_str, 0)
		elif cmd in ('master_repositories', 'repository_path', 'available_eclasses', 'eclass_path', 'license_path'):

src/p/o/portage-HEAD/pym/portage/package/ebuild/_ipc/QueryCommand.py   portage(Download)
from portage.package.ebuild._ipc.IpcCommand import IpcCommand
from portage.util import normalize_path
from portage.versions import best
 
class QueryCommand(IpcCommand):
			return ('', warnings_str, returncode)
		elif cmd == 'best_version':
			m = best(vardb.match(atom))
			return ('%s\n' % m, warnings_str, 0)
		elif cmd in ('master_repositories', 'repository_path', 'available_eclasses', 'eclass_path', 'license_path'):

src/p/o/portage-funtoo-HEAD/pym/_emerge/resolver/output.py   portage-funtoo(Download)
bad = create_color_func("BAD")
from portage.util import writemsg_stdout
from portage.versions import best
 
from _emerge.Blocker import Blocker
				myoldbest = myinslotlist[:]
				if not cpvequal(pkg.cpv,
					best([pkg.cpv] + [x.cpv for x in myinslotlist])):
					# Downgrade in slot
					pkg_info.attr_display.new_version = True

src/g/e/gentoo-gnome-HEAD/scripts/slot_rindex2.py   gentoo-gnome(Download)
        # XXX: Walk through slots (walk twice for ~arch and arch)
        for slot in sorted(slots):
            cpvr = portage.versions.best(slots[slot])
            depends = portdb.dbapi.aux_get(cpvr, ['DEPEND', 'RDEPEND', 'PDEPEND'])
            depends = set(portage.dep.use_reduce(' '.join(depends), matchall=True, flat=True))

src/p/o/portage-funtoo-HEAD/pym/portage/glsa.py   portage-funtoo(Download)
from portage import _unicode_decode
from portage import _unicode_encode
from portage.versions import pkgsplit, vercmp, best
from portage.util import grabfile
from portage.const import PRIVATE_PATH