aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-08-15 18:13:18 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-08-15 18:13:18 +0000
commit74ecc5568944b42e38cd99a4c07a6249bc9a56ed (patch)
tree4afdd58d9462b0d2efe71edfa43810e42766b5d2 /pym/portage/manifest.py
parentRemove ACCEPT_PROPERTIES filtering since it's filtered on the python side. (diff)
downloadportage-74ecc5568944b42e38cd99a4c07a6249bc9a56ed.tar.gz
portage-74ecc5568944b42e38cd99a4c07a6249bc9a56ed.tar.bz2
portage-74ecc5568944b42e38cd99a4c07a6249bc9a56ed.zip
Prepare 308 messages to localization.
svn path=/main/trunk/; revision=14067
Diffstat (limited to 'pym/portage/manifest.py')
-rw-r--r--pym/portage/manifest.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/pym/portage/manifest.py b/pym/portage/manifest.py
index cc02ddfcc..4c4cb60b3 100644
--- a/pym/portage/manifest.py
+++ b/pym/portage/manifest.py
@@ -19,6 +19,7 @@ from portage import _unicode_encode
from portage.exception import DigestException, FileNotFound, \
InvalidDataType, MissingParameter, PermissionDenied, \
PortageException, PortagePackageException
+from portage.localization import _
class FileNotInManifestException(PortageException):
pass
@@ -221,7 +222,7 @@ class Manifest(object):
for t in self.fhashdict:
for f in self.fhashdict[t]:
if portage.const.MANIFEST2_REQUIRED_HASH not in self.fhashdict[t][f]:
- raise MissingParameter("Missing %s checksum: %s %s" % (portage.const.MANIFEST2_REQUIRED_HASH, t, f))
+ raise MissingParameter(_("Missing %s checksum: %s %s") % (portage.const.MANIFEST2_REQUIRED_HASH, t, f))
def write(self, sign=False, force=False):
""" Write Manifest instance to disk, optionally signing it """
@@ -342,11 +343,11 @@ class Manifest(object):
cpv = "%s/%s" % (cat, pf)
if not ps:
raise PortagePackageException(
- "Invalid package name: '%s'" % cpv)
+ _("Invalid package name: '%s'") % cpv)
if ps[0] != pn:
raise PortagePackageException(
- "Package name does not " + \
- "match directory name: '%s'" % cpv)
+ _("Package name does not "
+ "match directory name: '%s'") % cpv)
cpvlist.append(cpv)
elif manifest2MiscfileFilter(f):
mytype = "MISC"
@@ -437,7 +438,7 @@ class Manifest(object):
except FileNotFound, e:
if not ignoreMissing:
raise
- return False, "File Not Found: '%s'" % str(e)
+ return False, _("File Not Found: '%s'") % str(e)
def checkCpvHashes(self, cpv, checkDistfiles=True, onlyDistfiles=False, checkMiscfiles=False):
""" check the hashes for all files associated to the given cpv, include all