emerge --sync: display message when cvs fails
authorZac Medico <zmedico@gentoo.org>
Thu, 17 Feb 2011 10:32:20 +0000 (02:32 -0800)
committerZac Medico <zmedico@gentoo.org>
Sun, 20 Feb 2011 00:01:14 +0000 (16:01 -0800)
pym/_emerge/actions.py

index 505410c4bb37e81e6b87b41de6af6050f0743b97..75624300f87f2a5482e5d9dfe2e6f5ce26367cf5 100644 (file)
@@ -2379,6 +2379,8 @@ 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:
                                sys.exit(retval)
                dosyncuri = syncuri