import portage
portage.proxy.lazyimport.lazyimport(globals(),
- 'portage.dep:dep_getkey,isjustname,isvalidatom,match_from_list',
+ 'portage.dep:dep_getkey,match_from_list',
'portage.output:EOutput,colorize',
'portage.update:update_dbentries',
'portage.util:ensure_dirs,normalize_path,writemsg,writemsg_stdout',
origcp = mylist[1]
newcp = mylist[2]
# sanity check
- for cp in [origcp, newcp]:
- if not (isvalidatom(cp) and isjustname(cp)):
- raise InvalidPackageName(cp)
+ for atom in (origcp, newcp):
+ if atom.cp != atom:
+ raise InvalidPackageName(str(atom))
origcat = origcp.split("/")[0]
mynewcat = newcp.split("/")[0]
origmatches=self.dbapi.cp_list(origcp)
import portage
portage.proxy.lazyimport.lazyimport(globals(),
'portage.checksum:_perform_md5_merge@perform_md5',
- 'portage.dep:dep_getkey,isjustname,isvalidatom,match_from_list,' + \
+ 'portage.dep:dep_getkey,match_from_list,' + \
'use_reduce,paren_reduce',
'portage.elog:elog_process',
'portage.elog.filtering:filter_mergephases,filter_unmergephases',
newcp = mylist[2]
# sanity check
- for cp in [origcp, newcp]:
- if not (isvalidatom(cp) and isjustname(cp)):
- raise InvalidPackageName(cp)
+ for atom in (origcp, newcp):
+ if atom.cp != atom:
+ raise InvalidPackageName(str(atom))
origmatches = self.match(origcp, use_cache=0)
moves = 0
if not origmatches:
returnme.append(appendme)
return returnme
-
def getslot(self, mycatpkg):
"Get a slot for a catpkg; assume it exists."
try: