diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-11-11 10:19:32 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-11-11 10:19:32 +0000 |
commit | bfee6722b70cd7a88823380fd45bb055d221a855 (patch) | |
tree | f88be10f1690a756c1873489a5dc6166ca0b7d0a | |
parent | 856b5247042bf7ce4fdd236784d9a8dcc7012846 (diff) | |
download | portage-bfee6722b70cd7a88823380fd45bb055d221a855.tar.gz portage-bfee6722b70cd7a88823380fd45bb055d221a855.tar.bz2 portage-bfee6722b70cd7a88823380fd45bb055d221a855.zip |
Update hardcoded "cvs" error messages to show the correct vcs value.
svn path=/main/trunk/; revision=11851
-rwxr-xr-x | bin/repoman | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/bin/repoman b/bin/repoman index 34f169c74..5db3b6077 100755 --- a/bin/repoman +++ b/bin/repoman @@ -71,6 +71,7 @@ from portage.process import find_binary, spawn from portage.output import bold, create_color_func, darkgreen, \ green, nocolor, red, turquoise, yellow from portage.output import ConsoleStyleFile, StyleWriter +from portage.util import writemsg_level util.initialize_logger() @@ -1715,7 +1716,8 @@ else: elif vcs == "git": retval=os.system("git add "+" ".join(myautoadd)) if retval: - print "!!! Exiting on vcs (shell) error code:",retval + writemsg_level("!!! Exiting on %s (shell) error code: %s\n" % \ + (vcs, retval), level=logging.ERROR, noiselevel=-1) sys.exit(retval) if myunadded: @@ -1911,7 +1913,8 @@ else: except OSError: pass if retval: - print "!!! Exiting on cvs (shell) error code:",retval + writemsg_level("!!! Exiting on %s (shell) error code: %s\n" % \ + (vcs, retval), level=logging.ERROR, noiselevel=-1) sys.exit(retval) # Setup the GPG commands @@ -2034,7 +2037,8 @@ else: except OSError: pass if retval: - print "!!! Exiting on cvs (shell) error code:",retval + writemsg_level("!!! Exiting on %s (shell) error code: %s\n" % \ + (vcs, retval), level=logging.ERROR, noiselevel=-1) sys.exit(retval) manifest_commit_required = False @@ -2110,7 +2114,8 @@ else: except OSError: pass if retval: - print "!!! Exiting on cvs (shell) error code:",retval + writemsg_level("!!! Exiting on %s (shell) error code: %s\n" % \ + (vcs, retval), level=logging.ERROR, noiselevel=-1) sys.exit(retval) print |