Did I find the right examples for you? yes no

All Samples(23)  |  Call(11)  |  Derive(0)  |  Import(12)

src/p/o/portage-funtoo-HEAD/pym/_emerge/is_valid_package_atom.py   portage-funtoo(Download)
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
 
import re
from portage.dep import isvalidatom
		if x2 != None:
			x = x2
	return isvalidatom(x, allow_blockers=False, allow_repo=allow_repo)
 

src/p/o/portage-HEAD/pym/_emerge/is_valid_package_atom.py   portage(Download)
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
 
import re
from portage.dep import isvalidatom
		if x2 != None:
			x = x2
	return isvalidatom(x, allow_blockers=False, allow_repo=allow_repo)
 

src/p/o/portage-funtoo-HEAD/pym/portage/dbapi/dep_expand.py   portage-funtoo(Download)
 
from portage.dbapi.cpv_expand import cpv_expand
from portage.dep import Atom, isvalidatom
from portage.exception import InvalidAtom
from portage.versions import catsplit
		except InvalidAtom:
			# Missing '=' prefix is allowed for backward compatibility.
			if not isvalidatom("=" + mydep, allow_repo=True):
				raise
			mydep = Atom('=' + mydep, allow_repo=True)

src/p/o/portage-HEAD/pym/portage/dbapi/dep_expand.py   portage(Download)
 
from portage.dbapi.cpv_expand import cpv_expand
from portage.dep import Atom, isvalidatom
from portage.exception import InvalidAtom
from portage.versions import catsplit
		except InvalidAtom:
			# Missing '=' prefix is allowed for backward compatibility.
			if not isvalidatom("=" + mydep, allow_repo=True):
				raise
			mydep = Atom('=' + mydep, allow_repo=True)

src/p/o/portage-funtoo-HEAD/pym/portage/package/ebuild/config.py   portage-funtoo(Download)
from portage.dbapi import dbapi
from portage.dbapi.porttree import portdbapi
from portage.dep import Atom, isvalidatom, match_from_list, use_reduce, _repo_separator, _slot_separator
from portage.eapi import eapi_exports_AA, eapi_exports_merge_type, \
	eapi_supports_prefix, eapi_exports_replace_vars, _get_eapi_attrs
			for x in range(len(pkgprovidedlines)-1, -1, -1):
				myline = pkgprovidedlines[x]
				if not isvalidatom("=" + myline):
					writemsg(_("Invalid package name in package.provided: %s\n") % \
						myline, noiselevel=-1)

src/p/o/portage-HEAD/pym/portage/package/ebuild/config.py   portage(Download)
from portage.dbapi import dbapi
from portage.dbapi.porttree import portdbapi
from portage.dep import Atom, isvalidatom, match_from_list, use_reduce, _repo_separator, _slot_separator
from portage.eapi import eapi_exports_AA, eapi_exports_merge_type, \
	eapi_supports_prefix, eapi_exports_replace_vars, _get_eapi_attrs
			for x in range(len(pkgprovidedlines)-1, -1, -1):
				myline = pkgprovidedlines[x]
				if not isvalidatom("=" + myline):
					writemsg(_("Invalid package name in package.provided: %s\n") % \
						myline, noiselevel=-1)

src/g/e/gentoo-gnome-HEAD/scripts/slot_rindex2.py   gentoo-gnome(Download)
            depends = portdb.dbapi.aux_get(cpvr, ['DEPEND', 'RDEPEND', 'PDEPEND'])
            depends = set(portage.dep.use_reduce(' '.join(depends), matchall=True, flat=True))
            depends = [dep for dep in depends if portage.dep.isvalidatom(dep)]
 
            #print('DEPEND:')

src/p/o/portage-funtoo-HEAD/pym/portage/env/validators.py   portage-funtoo(Download)
# validators.py Portage File Loader Code
# Copyright 2007 Gentoo Foundation
 
from portage.dep import isvalidatom
 
	if atom.startswith("*") or atom.startswith("-"):
		atom = atom[1:]
	if not isvalidatom(atom):
		return False
	return True

src/p/o/portage-HEAD/pym/portage/env/validators.py   portage(Download)
# validators.py Portage File Loader Code
# Copyright 2007 Gentoo Foundation
 
from portage.dep import isvalidatom
 
	if atom.startswith("*") or atom.startswith("-"):
		atom = atom[1:]
	if not isvalidatom(atom):
		return False
	return True

src/p/o/portage-funtoo-HEAD/pym/portage/news.py   portage-funtoo(Download)
	grabfile, normalize_path, write_atomic, writemsg_level
from portage.data import portage_gid
from portage.dep import isvalidatom
from portage.localization import _
from portage.locks import lockfile, unlockfile
	def isValid(self):
		return isvalidatom(self.atom)
 
	def checkRestriction(self, **kwargs):
		vdb = kwargs['vardb']

  1 | 2  Next