diff options
author | Jesse Keating <jkeating@redhat.com> | 2010-01-04 15:59:52 -0800 |
---|---|---|
committer | Jesse Keating <jkeating@redhat.com> | 2010-01-04 15:59:52 -0800 |
commit | 7a6a512468692a717f537de087009ba846b295c3 (patch) | |
tree | 42071750156407a047d2fe21cac5ec596b879440 | |
parent | 5c0a9bef181a3380921b90aafaf985ab0fe07ba1 (diff) | |
download | fedora-packager-7a6a512468692a717f537de087009ba846b295c3.tar.gz fedora-packager-7a6a512468692a717f537de087009ba846b295c3.tar.xz fedora-packager-7a6a512468692a717f537de087009ba846b295c3.zip |
Wire up local target
-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 a447c1a..c393e9c 100755 --- a/src/fedpkg.py +++ b/src/fedpkg.py @@ -77,8 +77,15 @@ def lint(args): return 1 def local(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.local(arch=arch)) + except fedpkg.FedpkgError, e: + print('Could not build locally: %s' % e) + return 1 def mockbuild(args): # not implimented @@ -239,6 +246,7 @@ if __name__ == '__main__': # Build locally parser_local = subparsers.add_parser('local', help = 'Local test rpmbuild binary') + parser_local.add_argument('--arch', help = 'Build for arch') parser_local.set_defaults(command = local) # Build in mock |