git://git.onelab.eu
/
build.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a871a4
)
check parser's return value and exit accordingly
author
Baris Metin
<bmetin@verivue.com>
Mon, 21 Mar 2011 18:57:54 +0000
(14:57 -0400)
committer
Baris Metin
<bmetin@verivue.com>
Mon, 21 Mar 2011 18:57:54 +0000
(14:57 -0400)
pkgs.py
patch
|
blob
|
history
diff --git
a/pkgs.py
b/pkgs.py
index
bec6519
..
e7fe740
100755
(executable)
--- a/
pkgs.py
+++ b/
pkgs.py
@@
-208,9
+208,10
@@
def main ():
pkgs = PkgsParser (options.arch,options.fcdistro,options.pldistro,keyword,inputs,options)
- pkgs.run()
-
- sys.exit(0)
+ if pkgs.run():
+ sys.exit(0)
+ else:
+ sys.exit(1)
if __name__ == '__main__':
if main():