From: Zac Medico Date: Sun, 2 Dec 2007 21:07:30 +0000 (-0000) Subject: Add back missing err() function. X-Git-Tag: v2.2_pre1~244 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=088be8d8845c14d5877aa56abbdfc61d55b778d9;p=portage.git Add back missing err() function. svn path=/main/trunk/; revision=8807 --- 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)