emerge: fix --sync cvs error message
authorZac Medico <zmedico@gentoo.org>
Fri, 18 Feb 2011 16:44:31 +0000 (08:44 -0800)
committerZac Medico <zmedico@gentoo.org>
Fri, 18 Feb 2011 16:44:31 +0000 (08:44 -0800)
pym/_emerge/actions.py

index 5aa4f24ab2bcd1ffb5ef332246d8d9cee42573a1..08a92d6777bac87e09e92888028d16e9a10f54ba 100644 (file)
@@ -2400,9 +2400,9 @@ def action_sync(settings, trees, mtimedb, myopts, myaction):
                        retval = portage.process.spawn_bash(
                                "cd %s; exec cvs -z0 -q update -dP" % \
                                (portage._shell_quote(myportdir),), **spawn_kwargs)
-                       writemsg_level("!!! cvs update error; exiting.\n",
-                               noiselevel=-1, level=logging.ERROR)
                        if retval != os.EX_OK:
+                               writemsg_level("!!! cvs update error; exiting.\n",
+                                       noiselevel=-1, level=logging.ERROR)
                                sys.exit(retval)
                dosyncuri = syncuri
        else: