From 480574e1dd20d17a97988454e5d20d77b5f40c04 Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Tue, 5 Jan 2010 13:28:19 -0800 Subject: wire up prep --- src/fedpkg.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/fedpkg.py') 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 -- cgit