summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-12-02 21:07:30 +0000
committerZac Medico <zmedico@gentoo.org>2007-12-02 21:07:30 +0000
commit088be8d8845c14d5877aa56abbdfc61d55b778d9 (patch)
tree81180c67ea3ab8bdb0fa4f98a2c2c6a0c12e737e
parent805f509b5b1a6da0bfb67623780659b49238e16c (diff)
downloadportage-088be8d8845c14d5877aa56abbdfc61d55b778d9.tar.gz
portage-088be8d8845c14d5877aa56abbdfc61d55b778d9.tar.bz2
portage-088be8d8845c14d5877aa56abbdfc61d55b778d9.zip
Add back missing err() function.
svn path=/main/trunk/; revision=8807
-rwxr-xr-xbin/repoman7
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)