Fix the 'TypeError: not all arguments converted during string formatting' for bug...
authorZac Medico <zmedico@gentoo.org>
Thu, 7 Dec 2006 18:58:28 +0000 (18:58 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 7 Dec 2006 18:58:28 +0000 (18:58 -0000)
svn path=/main/trunk/; revision=5203

pym/portage.py

index 7ff156315f88d7f40d0ef71f4083bd61bcb27f2c..61bffdc96a311e48a025c7537f91c290fce6ea5d 100644 (file)
@@ -2510,8 +2510,8 @@ def digestgen(myarchives, mysettings, overwrite=1, manifestonly=0, myportdb=None
                                                        if os.path.basename(uri) == myfile:
                                                                myuris.append(uri)
                                if not fetch(myuris, mysettings):
-                                       writemsg("!!! File %s doesn't exist, can't update " + \
-                                               "Manifest\n" % myfile, noiselevel=-1)
+                                       writemsg(("!!! File %s doesn't exist, can't update " + \
+                                               "Manifest\n") % myfile, noiselevel=-1)
                                        return 0
                writemsg_stdout(">>> Creating Manifest for %s\n" % mysettings["O"])
                try:
@@ -2520,8 +2520,8 @@ def digestgen(myarchives, mysettings, overwrite=1, manifestonly=0, myportdb=None
                                assumeDistHashesAlways=(
                                "assume-digests" in mysettings.features))
                except portage_exception.FileNotFound, e:
-                       writemsg("!!! File %s doesn't exist, can't update " + \
-                               "Manifest\n" % str(e), noiselevel=-1)
+                       writemsg(("!!! File %s doesn't exist, can't update " + \
+                               "Manifest\n") % e, noiselevel=-1)
                        return 0
                mf.write(sign=False)
                if "assume-digests" not in mysettings.features: