diff options
author | Jesse Keating <jkeating@redhat.com> | 2010-01-05 13:08:12 -0800 |
---|---|---|
committer | Jesse Keating <jkeating@redhat.com> | 2010-01-05 13:08:12 -0800 |
commit | 6bcd4d3aae1593d25125b6574765037b03d4a259 (patch) | |
tree | 0d2a33c7475dd8dd710cdcc034032b0938c4f993 /src/fedpkg.py | |
parent | 5959b63fc9f738ff66d01ecbbe34d3e67ee0c2fb (diff) | |
download | fedora-packager-6bcd4d3aae1593d25125b6574765037b03d4a259.tar.gz fedora-packager-6bcd4d3aae1593d25125b6574765037b03d4a259.tar.xz fedora-packager-6bcd4d3aae1593d25125b6574765037b03d4a259.zip |
Use sys.exit(1) instead of returning 1
Diffstat (limited to 'src/fedpkg.py')
-rwxr-xr-x | src/fedpkg.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/fedpkg.py b/src/fedpkg.py index d5b394a..837b2ba 100755 --- a/src/fedpkg.py +++ b/src/fedpkg.py @@ -63,7 +63,7 @@ def gimmespec(args): print(mymodule.spec) except fedpkg.FedpkgError, e: print('Could not get spec file: %s' % e) - return 1 + sys.exit(1) def install(args): # not implimented @@ -75,7 +75,7 @@ def lint(args): print(mymodule.lint()) except fedpkg.FedpkgError, e: print('Could not run rpmlint: %s' % e) - return 1 + sys.exit(1) def local(args): arch = None @@ -89,7 +89,7 @@ def local(args): print(mymodule.local(arch=arch)) except fedpkg.FedpkgError, e: print('Could not build locally: %s' % e) - return 1 + sys.exit(1) def mockbuild(args): # not implimented @@ -121,7 +121,7 @@ def sources(args): mymodule.sources(args.outdir) except fedpkg.FedpkgError, e: print('Could not download sources: %s' % e) - return 1 + sys.exit(1) def srpm(args): try: @@ -133,7 +133,7 @@ def srpm(args): mymodule.srpm() except fedpkg.FedpkgError, e: print('Could not make an srpm: %s' % e) - return 1 + sys.exit(1) def tagrequest(args): # not implimented |