# returns a filename:size dictionnary of remaining downloads
myebuild = self.findname(mypkg)
if myebuild is None:
- raise AssertionError("ebuild not found for '%s'" % mypkg)
+ raise AssertionError(_("ebuild not found for '%s'") % mypkg)
pkgdir = os.path.dirname(myebuild)
mf = Manifest(pkgdir, self.settings["DISTDIR"])
checksums = mf.getDigests()
if not checksums:
if debug:
- writemsg("[empty/missing/bad digest]: %s\n" % (mypkg,))
+ writemsg(_("[empty/missing/bad digest]: %s\n") % (mypkg,))
return {}
filesdict={}
myfiles = self.getFetchMap(mypkg, useflags=useflags)
myfiles = self.getFetchMap(mypkg, useflags=useflags)
myebuild = self.findname(mypkg)
if myebuild is None:
- raise AssertionError("ebuild not found for '%s'" % mypkg)
+ raise AssertionError(_("ebuild not found for '%s'") % mypkg)
pkgdir = os.path.dirname(myebuild)
mf = Manifest(pkgdir, self.settings["DISTDIR"])
mysums = mf.getDigests()
backup_dest = self._new_backup_path(mydest)
msg = []
msg.append("")
- msg.append("Installation of a directory is blocked by a file:")
+ msg.append(_("Installation of a directory is blocked by a file:"))
msg.append(" '%s'" % mydest)
- msg.append("This file will be renamed to a different name:")
+ msg.append(_("This file will be renamed to a different name:"))
msg.append(" '%s'" % backup_dest)
msg.append("")
self._eerror("preinst", msg)
newdest = self._new_backup_path(mydest)
msg = []
msg.append("")
- msg.append("Installation of a regular file is blocked by a directory:")
+ msg.append(_("Installation of a regular file is blocked by a directory:"))
msg.append(" '%s'" % mydest)
- msg.append("This file will be merged with a different name:")
+ msg.append(_("This file will be merged with a different name:"))
msg.append(" '%s'" % newdest)
msg.append("")
self._eerror("preinst", msg)
# portage: news management code
-# Copyright 2006 Gentoo Foundation
+# Copyright 2006-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
__all__ = ["NewsManager", "NewsItem", "DisplayRestriction",
itemid = _unicode_decode(itemid,
encoding=_encodings['fs'], errors='replace')
writemsg_level(
- "!!! Invalid encoding in news item name: '%s'\n" % \
+ _("!!! Invalid encoding in news item name: '%s'\n") % \
itemid, level=logging.ERROR, noiselevel=-1)
continue