From e50d2677e6d9ab661b791097dde3086ecf21c16f Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Fri, 21 Jan 2011 14:22:04 -0800 Subject: Make sure we have an srpm when doing a mockbuild (#665555) This required a new option to mockbuild, md5. This is because srpm needs this argument to function correctly. --- src/fedpkg.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/fedpkg.py') diff --git a/src/fedpkg.py b/src/fedpkg.py index 89e3ce5..4c73351 100755 --- a/src/fedpkg.py +++ b/src/fedpkg.py @@ -579,6 +579,7 @@ def mockbuild(args): # Pick up any mockargs from the env mockargs = [] try: + srpm(args) mockargs = os.environ['MOCKARGS'].split() except KeyError: # there were no args @@ -1066,6 +1067,9 @@ packages will be built sequentially. # Build in mock parser_mockbuild = subparsers.add_parser('mockbuild', help = 'Local test build using mock') + # optionally define old style hashsums + parser_mockbuild.add_argument('--md5', action = 'store_true', + help = 'Use md5 checksums (for older rpm hosts)') parser_mockbuild.set_defaults(command = mockbuild) # See what's different -- cgit