|
|
@ -228,18 +228,19 @@ class Update:
|
|
|
|
egenCache = getProgPath('/usr/bin/egencache')
|
|
|
|
egenCache = getProgPath('/usr/bin/egencache')
|
|
|
|
if not egenCache:
|
|
|
|
if not egenCache:
|
|
|
|
raise UpdateError(_("The Portage tool is not found"))
|
|
|
|
raise UpdateError(_("The Portage tool is not found"))
|
|
|
|
path_rep = self.clVars.Select('cl_update_rep_path',
|
|
|
|
if repname in self.clVars.Get('cl_update_rep_name'):
|
|
|
|
where='cl_update_rep_name',
|
|
|
|
path_rep = self.clVars.Select('cl_update_rep_path',
|
|
|
|
eq=repname, limit=1)
|
|
|
|
where='cl_update_rep_name',
|
|
|
|
repo_name = readFile(
|
|
|
|
eq=repname, limit=1)
|
|
|
|
path.join(path_rep,"profiles/repo_name")).strip()
|
|
|
|
repo_name = readFile(
|
|
|
|
if repo_name != repname:
|
|
|
|
path.join(path_rep,"profiles/repo_name")).strip()
|
|
|
|
self.printWARNING(
|
|
|
|
if repo_name != repname:
|
|
|
|
_("Repository '{repo_name}' called '{repname}'"
|
|
|
|
self.printWARNING(
|
|
|
|
" in cl_update_rep_name").format(
|
|
|
|
_("Repository '{repo_name}' called '{repname}'"
|
|
|
|
repo_name=repo_name, repname=repname))
|
|
|
|
" in cl_update_rep_name").format(
|
|
|
|
raise UpdateError(_("Failed to update the cache of the {rname} "
|
|
|
|
repo_name=repo_name, repname=repname))
|
|
|
|
"repository").format(rname=repname))
|
|
|
|
raise UpdateError(_("Failed to update the cache of the {rname} "
|
|
|
|
|
|
|
|
"repository").format(rname=repname))
|
|
|
|
cpu_num = self.clVars.Get('hr_cpu_num')
|
|
|
|
cpu_num = self.clVars.Get('hr_cpu_num')
|
|
|
|
p = process(egenCache, "--repo=%s" % repname, "--update",
|
|
|
|
p = process(egenCache, "--repo=%s" % repname, "--update",
|
|
|
|
"--jobs=%s" % cpu_num, stderr=STDOUT)
|
|
|
|
"--jobs=%s" % cpu_num, stderr=STDOUT)
|
|
|
|