diff options
author | Hans Ulrich Niedermann <hun@n-dimensional.de> | 2011-02-05 01:25:15 +0100 |
---|---|---|
committer | Hans Ulrich Niedermann <hun@n-dimensional.de> | 2011-02-05 01:25:15 +0100 |
commit | 25e7ca228a2bdde4cd94731a3113f48c02418631 (patch) | |
tree | 7531ae45a1ed6a6c5822912790edd177d41df2ca /src/fedpkg.py | |
parent | 0f49c4e1336138ee8909bc76ad636878d067e60e (diff) | |
parent | 357ae922fa3621b76ca5209524285d310cd869a1 (diff) | |
download | fedora-packager-5/ALL.tar.gz fedora-packager-5/ALL.tar.xz fedora-packager-5/ALL.zip |
Merge branch 'new-command/verify-files' into 5/ALL5/ALL
Conflicts:
src/fedpkg.bash
Diffstat (limited to 'src/fedpkg.py')
-rwxr-xr-x | src/fedpkg.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/fedpkg.py b/src/fedpkg.py index fd16f49..4086562 100755 --- a/src/fedpkg.py +++ b/src/fedpkg.py @@ -500,6 +500,14 @@ def diff(args): log.error('Could not diff: %s' % e) sys.exit(1) +def verify_files(args): + try: + mymodule = pyfedpkg.PackageModule(args.path, args.dist) + return mymodule.verify_files() + except pyfedpkg.FedpkgError, e: + log.error('Could not verify %%files list: %s' % e) + sys.exit(1) + def export(args): # not implimented; not planned log.warning('Not implimented yet, got %s' % args) @@ -1013,6 +1021,12 @@ packages will be built sequentially. help = 'short-circuit compile') parser_compile.set_defaults(command = compile) + # Verify %files list locally + parser_verify_files = subparsers.add_parser('verify-files', + help='Locally verify %%files section', + description="Locally run 'rpmbuild -bl' to verify the spec file's %files sections. This is useful after a successful run of 'fedpkg install' or after a 'fedpkg local' run which failed due to %files list inaccuracies.") + parser_verify_files.set_defaults(command = verify_files) + # export the module; not planned #parser_export = subparsers.add_parser('export', # help = 'Create a clean export') |