Add back missing err() function.
authorZac Medico <zmedico@gentoo.org>
Sun, 2 Dec 2007 21:07:30 +0000 (21:07 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 2 Dec 2007 21:07:30 +0000 (21:07 -0000)
svn path=/main/trunk/; revision=8807

bin/repoman

index c86b4f3225f58db1e8fe2734ba06122e65d62a33..540666e9b502328855a173b9c816b08d5e3a2093 100755 (executable)
@@ -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)