Fix 'TypeError: not all arguments converted during string formatting'. Thanks to...
authorZac Medico <zmedico@gentoo.org>
Sat, 13 Jan 2007 22:51:36 +0000 (22:51 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 13 Jan 2007 22:51:36 +0000 (22:51 -0000)
svn path=/main/trunk/; revision=5634

pym/portage.py

index ee2dd5ef683fd4a39484b82a91af8a9135016b3f..d192b75b408b1d40a59e549ef4306fc2cb584986 100644 (file)
@@ -980,8 +980,8 @@ class config:
 
                        def check_var_directory(varname, var):
                                if not os.path.isdir(var):
-                                       writemsg("!!! Error: %s='%s' is not a directory. " + \
-                                               "Please correct this.\n" % (var, varname),
+                                       writemsg(("!!! Error: %s='%s' is not a directory. " + \
+                                               "Please correct this.\n") % (var, varname),
                                                noiselevel=-1)
                                        raise portage_exception.DirectoryNotFound(var)