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>
Sun, 20 Feb 2011 00:03:04 +0000 (16:03 -0800)
pym/_emerge/actions.py

index e8a38ad1232f8fbd2231ecc1c55892e610a7ae70..eece67139a531c209083fced591f96c3f0c627a0 100644 (file)
@@ -2379,9 +2379,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: