summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-02-24 01:43:13 +0000
committerMike Frysinger <vapier@gentoo.org>2006-02-24 01:43:13 +0000
commit1825fa12a1b6c8b210d1f21898846fc6315ddf1e (patch)
tree7baf570ceefe77662ebf04620a0d2c7d37452f5c
parent4de78dba0f1acd253cc8e8a66a8cfa8ca2e56550 (diff)
downloadportage-1825fa12a1b6c8b210d1f21898846fc6315ddf1e.tar.gz
portage-1825fa12a1b6c8b210d1f21898846fc6315ddf1e.tar.bz2
portage-1825fa12a1b6c8b210d1f21898846fc6315ddf1e.zip
move the err/warn funcs together
svn path=/main/trunk/; revision=2780
-rwxr-xr-xbin/repoman9
1 files changed, 4 insertions, 5 deletions
diff --git a/bin/repoman b/bin/repoman
index 6da799683..ee5a0a459 100755
--- a/bin/repoman
+++ b/bin/repoman
@@ -44,7 +44,10 @@ if portage.settings["NOCOLOR"] in ("yes","true") or not sys.stdout.isatty():
def warn(txt):
print exename+": "+txt
-
+def err(txt):
+ warn(txt)
+ sys.exit(1)
+
def err_help(txt):
help(exitstatus=-1,helpfulness=0)
warn(txt)
@@ -202,10 +205,6 @@ for x in missingvars:
qawarnings.append(x)
-def err(txt):
- print exename+": "+txt
- sys.exit(1)
-
ven_cat = r'[\w0-9-]+' # Category
ven_nam = r'([+a-z0-9-]+(?:[+_a-z0-9-]*[+a-z0-9-]+)*)' # Name
ven_ver = r'((?:\d+\.)*\d+[a-z]?)' # Version