diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-12-02 21:07:30 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-12-02 21:07:30 +0000 |
commit | 088be8d8845c14d5877aa56abbdfc61d55b778d9 (patch) | |
tree | 81180c67ea3ab8bdb0fa4f98a2c2c6a0c12e737e | |
parent | 805f509b5b1a6da0bfb67623780659b49238e16c (diff) | |
download | portage-088be8d8845c14d5877aa56abbdfc61d55b778d9.tar.gz portage-088be8d8845c14d5877aa56abbdfc61d55b778d9.tar.bz2 portage-088be8d8845c14d5877aa56abbdfc61d55b778d9.zip |
Add back missing err() function.
svn path=/main/trunk/; revision=8807
-rwxr-xr-x | bin/repoman | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/repoman b/bin/repoman index c86b4f322..540666e9b 100755 --- a/bin/repoman +++ b/bin/repoman @@ -83,6 +83,13 @@ if repoman_settings.get("NOCOLOR", "").lower() in ("yes", "true") or \ not sys.stdout.isatty(): nocolor() +def warn(txt): + print "repoman: " + txt + +def err(txt): + warn(txt) + sys.exit(1) + def exithandler(signum=None, frame=None): logging.fatal("Interrupted; exiting...") sys.exit(1) |