return s
def __str__(self):
+ """
+ In python-2.x, str() can trigger a UnicodeEncodeError here,
+ so call __str__() directly.
+ """
output = []
shown_repos = self._shown_repos
unknown_repo = self._unknown_repo
print
print counters
if show_repos:
- writemsg_stdout(str(repo_display), noiselevel=-1)
+ # In python-2.x, str() can trigger a UnicodeEncodeError here,
+ # so call __str__() directly.
+ writemsg_stdout(repo_display.__str__(), noiselevel=-1)
if "--changelog" in self._frozen_config.myopts:
writemsg_stdout('\n', noiselevel=-1)
mydata, st, emtime = self._pull_valid_cache(mycpv, myebuild, mylocation)
doregen = mydata is None
- writemsg(_("auxdb is valid: ")+str(not doregen)+" "+str(pkg)+"\n", 2)
-
if doregen:
if myebuild in self._broken_ebuilds:
raise KeyError(mycpv)
if not self._have_root_eclass_dir:
raise KeyError(mycpv)
- writemsg("doregen: %s %s\n" % (doregen, mycpv), 2)
- writemsg(_("Generating cache entry(0) for: ")+str(myebuild)+"\n", 1)
self.doebuild_settings.setcpv(mycpv)
mydata = {}
os.path.join(self.mysettings["DISTDIR"], x), mysums[x])
except FileNotFound, e:
ok = False
- reason = _("File Not Found: '%s'") % str(e)
+ reason = _("File Not Found: '%s'") % (e,)
if not ok:
failures[x] = reason
if failures:
except PortageException, e:
writemsg("!!! Error: aux_get('%s', %s)\n" % (mycpv, aux_keys),
noiselevel=-1)
- writemsg("!!! %s\n" % str(e), noiselevel=-1)
+ writemsg("!!! %s\n" % (e,), noiselevel=-1)
del e
continue
eapi = metadata["EAPI"]