do print transformations that 2to3 doesn't seem to catch
authorFabian Groffen <grobian@gentoo.org>
Mon, 21 Sep 2009 19:00:57 +0000 (19:00 -0000)
committerFabian Groffen <grobian@gentoo.org>
Mon, 21 Sep 2009 19:00:57 +0000 (19:00 -0000)
svn path=/main/branches/prefix/; revision=14359

pym/_emerge/actions.py
pym/portage/dbapi/vartree.py

index 34fdda3d94fcee009d2b5ce2e51bdbdef895ca88..fcf0453c9c09ceef5e9cc6efab5357671fb018e7 100644 (file)
@@ -2158,17 +2158,17 @@ def action_sync(settings, trees, mtimedb, myopts, myaction):
        elif syncuri[:11]=="svn+http://" or syncuri[:6]=="svn://" or syncuri[:12]=="svn+https://":
                # Gentoo Prefix hardcoded SVN support
                if not os.path.exists(EPREFIX + "/usr/bin/svn"):
-                       print "!!! " + EPREFIX + "/usr/bin/svn does not exist, so SVN support is disabled."
-                       print "!!! Type \"emerge dev-util/subversion\" to enable SVN support."
+                       print("!!! " + EPREFIX + "/usr/bin/svn does not exist, so SVN support is disabled.")
+                       print("!!! Type \"emerge dev-util/subversion\" to enable SVN support.")
                        sys.exit(1)
                svndir=os.path.dirname(myportdir)
                if not os.path.exists(myportdir+"/.svn"):
                        #initial checkout
                        if syncuri[:4] == "svn+":
                                syncuri = syncuri[4:]
-                       print ">>> Starting initial svn checkout with "+syncuri+"..."
+                       print(">>> Starting initial svn checkout with "+syncuri+"...")
                        if os.path.exists(svndir+"/prefix-overlay"):
-                               print "!!! existing",svndir+"/prefix-overlay directory; exiting."
+                               print("!!! existing",svndir+"/prefix-overlay directory; exiting.")
                                sys.exit(1)
                        try:
                                os.rmdir(myportdir)
@@ -2179,12 +2179,12 @@ def action_sync(settings, trees, mtimedb, myopts, myaction):
                                        sys.exit(1)
                                del e
                        if portage.spawn("cd "+svndir+"; svn checkout "+syncuri,settings,free=1):
-                               print "!!! svn checkout error; exiting."
+                               print("!!! svn checkout error; exiting.")
                                sys.exit(1)
                        os.rename(os.path.join(svndir, "prefix-overlay"), myportdir)
                else:
                        #svn update
-                       print ">>> Starting svn update..."
+                       print(">>> Starting svn update...")
                        retval = portage.spawn("cd '%s'; svn update" % myportdir, \
                                settings, free=1)
                        if retval != os.EX_OK:
index 9fb2ecafb984b31398065b5e54060d324f1e8020..c9d75d4c44cd645f7479f88ab28ed64f3869597f 100644 (file)
@@ -1088,13 +1088,13 @@ class LinkageMapMachO(object):
                                                # XXX This is most often due to soname symlinks not in
                                                # a library's directory.  We could catalog symlinks in
                                                # LinkageMap to avoid checking for this edge case here.
-                                               print "Found provider outside of findProviders:", \
-                                                               install_name, "->", cachedRealpath
+                                               print(_("Found provider outside of findProviders:"), \
+                                                               install_name, "->", cachedRealpath)
                                if debug and cachedArch == arch and \
                                                cachedKey in self._obj_properties:
-                                       print "Broken symlink or missing/bad install_name:", \
+                                       print(_("Broken symlink or missing/bad install_name:"), \
                                                        install_name, '->', cachedRealpath, \
-                                                       "with install_name", cachedInstallname, "but expecting", install_name
+                                                       "with install_name", cachedInstallname, "but expecting", install_name)
                                # This conditional checks if there are no libraries to
                                # satisfy the install_name (empty set).
                                if not validLibrary:
@@ -1111,10 +1111,10 @@ class LinkageMapMachO(object):
                                                rValue.setdefault(lib, set()).add(install_name)
                                                if debug:
                                                        if not os.path.isfile(lib):
-                                                               print "Missing library:", lib
+                                                               print(_("Missing library:"), lib)
                                                        else:
-                                                               print "Possibly missing symlink:", \
-                                                                               install_name
+                                                               print(_("Possibly missing symlink:"), \
+                                                                               install_name)
                return rValue
 
        def listProviders(self):