Did I find the right examples for you? yes no

All Samples(14)  |  Call(10)  |  Derive(0)  |  Import(4)

src/p/o/portage-funtoo-HEAD/pym/portage/package/ebuild/_config/UseManager.py   portage-funtoo(Download)
from _emerge.Package import Package
from portage import os
from portage.dep import Atom, dep_getrepo, dep_getslot, ExtendedAtomDict, remove_slot, _get_useflag_re, _repo_separator
from portage.eapi import eapi_has_use_aliases, eapi_supports_stable_use_forcing_and_masking
from portage.exception import InvalidAtom
		cp = getattr(pkg, "cp", None)
		if cp is None:
			slot = dep_getslot(pkg)
			repo = dep_getrepo(pkg)
			pkg = _pkg_str(remove_slot(pkg), slot=slot, repo=repo)
		cp = getattr(pkg, "cp", None)
		if cp is None:
			slot = dep_getslot(pkg)
			repo = dep_getrepo(pkg)
			pkg = _pkg_str(remove_slot(pkg), slot=slot, repo=repo)
		cp = getattr(pkg, "cp", None)
		if cp is None:
			slot = dep_getslot(pkg)
			repo = dep_getrepo(pkg)
			pkg = _pkg_str(remove_slot(pkg), slot=slot, repo=repo)
	def getPUSE(self, pkg):
		cp = getattr(pkg, "cp", None)
		if cp is None:
			slot = dep_getslot(pkg)
			repo = dep_getrepo(pkg)

src/p/o/portage-HEAD/pym/portage/package/ebuild/_config/UseManager.py   portage(Download)
from _emerge.Package import Package
from portage import os
from portage.dep import Atom, dep_getrepo, dep_getslot, ExtendedAtomDict, remove_slot, _get_useflag_re, _repo_separator
from portage.eapi import eapi_has_use_aliases, eapi_supports_stable_use_forcing_and_masking
from portage.exception import InvalidAtom
		cp = getattr(pkg, "cp", None)
		if cp is None:
			slot = dep_getslot(pkg)
			repo = dep_getrepo(pkg)
			pkg = _pkg_str(remove_slot(pkg), slot=slot, repo=repo)
		cp = getattr(pkg, "cp", None)
		if cp is None:
			slot = dep_getslot(pkg)
			repo = dep_getrepo(pkg)
			pkg = _pkg_str(remove_slot(pkg), slot=slot, repo=repo)
		cp = getattr(pkg, "cp", None)
		if cp is None:
			slot = dep_getslot(pkg)
			repo = dep_getrepo(pkg)
			pkg = _pkg_str(remove_slot(pkg), slot=slot, repo=repo)
	def getPUSE(self, pkg):
		cp = getattr(pkg, "cp", None)
		if cp is None:
			slot = dep_getslot(pkg)
			repo = dep_getrepo(pkg)

src/g/e/gentoo-gnome-HEAD/scripts/slot_rindex.py   gentoo-gnome(Download)
    """
    # FIXME: Use our own portdb so that we match atoms outside of PORTDIR too
    slot = portage.dep.dep_getslot(dep)
    if slot or not dep.startswith('='):
        return slot

src/g/e/gentoo-gnome-HEAD/scripts/slot_rindex2.py   gentoo-gnome(Download)
            for depend in depends:
                if portage.dep.dep_getkey(depend) == sys.argv[1]:
                    mypkg_slot = portage.dep.dep_getslot(depend)
                    if mypkg_slot is None:
                        mypkg_slot = "unset"

src/p/o/portage-HEAD/pym/portage/tests/dep/test_dep_getslot.py   portage(Download)
 
from portage.tests import TestCase
from portage.dep import dep_getslot
 
class DepGetSlot(TestCase):

src/p/o/portage-funtoo-HEAD/pym/portage/tests/dep/test_dep_getslot.py   portage-funtoo(Download)
 
from portage.tests import TestCase
from portage.dep import dep_getslot
 
class DepGetSlot(TestCase):