projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4de78db
)
move the err/warn funcs together
author
Mike Frysinger
<vapier@gentoo.org>
Fri, 24 Feb 2006 01:43:13 +0000
(
01:43
-0000)
committer
Mike Frysinger
<vapier@gentoo.org>
Fri, 24 Feb 2006 01:43:13 +0000
(
01:43
-0000)
svn path=/main/trunk/; revision=2780
bin/repoman
patch
|
blob
|
history
diff --git
a/bin/repoman
b/bin/repoman
index 6da799683145e9189e8821fa214230009df8aeaa..ee5a0a459b84689cfeec3ef567a57dbf1d677b4b 100755
(executable)
--- 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