aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2009-12-22 12:21:17 -0200
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2009-12-22 12:21:17 -0200
commit789eacb05d600b52892cea56da0315d68194fafb (patch)
tree8d4984770db68682f4ee70e40a4647f0c0b17d58 /scripts
parentadded ^C handles and small fixes (diff)
downloadg-octave-789eacb05d600b52892cea56da0315d68194fafb.tar.gz
g-octave-789eacb05d600b52892cea56da0315d68194fafb.tar.bz2
g-octave-789eacb05d600b52892cea56da0315d68194fafb.zip
fixed wrong exit codes
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/g-octave4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/g-octave b/scripts/g-octave
index 244b5a8..05d0f43 100755
--- a/scripts/g-octave
+++ b/scripts/g-octave
@@ -163,7 +163,7 @@ def main():
for pkg in tree.pkg_list[category]:
print '\t%s-%s' % (pkg['name'], pkg['version'])
print
- sys,exit(1)
+ sys,exit(0)
elif len(args) == 0:
print >> sys.stderr, light_red('Error:'), white("""\
You need provide an atom "name", "name-version", or the option "--list" """)
@@ -194,7 +194,7 @@ can install only one package at once and his dependencies.""")
print light_blue('Categories:'), white(pkg.categories)
print light_blue('License:'), white(pkg.license)
print light_blue('Url:'), white(pkg.url)
- sys.exit(1)
+ sys.exit(0)
if options.verbose:
print white('>>> Creating the ebuilds to install:'), light_blue(args[0])