diff options
author | Jesse Keating <jkeating@redhat.com> | 2010-01-05 13:28:19 -0800 |
---|---|---|
committer | Jesse Keating <jkeating@redhat.com> | 2010-01-05 13:28:19 -0800 |
commit | 480574e1dd20d17a97988454e5d20d77b5f40c04 (patch) | |
tree | 1c0045bec7fb81de08d8b3ce2fee9bbb49741718 /src/fedpkg.py | |
parent | 1ed74f3ecaae0631a5824d492e61835ff7a99d58 (diff) | |
download | fedora-packager-480574e1dd20d17a97988454e5d20d77b5f40c04.tar.gz fedora-packager-480574e1dd20d17a97988454e5d20d77b5f40c04.tar.xz fedora-packager-480574e1dd20d17a97988454e5d20d77b5f40c04.zip |
wire up prep
Diffstat (limited to 'src/fedpkg.py')
-rwxr-xr-x | src/fedpkg.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/fedpkg.py b/src/fedpkg.py index 590ca3c..5248a36 100755 --- a/src/fedpkg.py +++ b/src/fedpkg.py @@ -112,8 +112,15 @@ def patch(args): print('Not implimented yet, got %s' % args) def prep(args): - # not implimented - print('Not implimented yet, got %s' % args) + arch = None + if args.arch: + arch = args.arch + try: + mymodule = fedpkg.PackageModule(args.path) + print(mymodule.prep(arch=arch)) + except fedpkg.FedpkgError, e: + print('Could not prep: %s' % e) + sys.exit(1) def scratchbuild(args): # not implimented @@ -291,6 +298,7 @@ if __name__ == '__main__': # Prep locally parser_prep = subparsers.add_parser('prep', help = 'Local test rpmbuild prep') + parser_prep.add_argument('--arch', help = 'Prep for a specific arch') parser_prep.set_defaults(command = prep) # scratch build |