summaryrefslogtreecommitdiffstats
path: root/src/fedpkg.py
diff options
context:
space:
mode:
authorJesse Keating <jkeating@redhat.com>2010-01-05 13:28:19 -0800
committerJesse Keating <jkeating@redhat.com>2010-01-05 13:28:19 -0800
commit480574e1dd20d17a97988454e5d20d77b5f40c04 (patch)
tree1c0045bec7fb81de08d8b3ce2fee9bbb49741718 /src/fedpkg.py
parent1ed74f3ecaae0631a5824d492e61835ff7a99d58 (diff)
downloadfedora-packager-480574e1dd20d17a97988454e5d20d77b5f40c04.tar.gz
fedora-packager-480574e1dd20d17a97988454e5d20d77b5f40c04.tar.xz
fedora-packager-480574e1dd20d17a97988454e5d20d77b5f40c04.zip
wire up prep
Diffstat (limited to 'src/fedpkg.py')
-rwxr-xr-xsrc/fedpkg.py12
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