From dd34b7ec82108b6001dc8487fe1c8e393723af5e Mon Sep 17 00:00:00 2001 From: Qixiang Wan Date: Oct 18 2016 09:12:44 +0000 Subject: New option name '--mock-config' for mockbuild's '--root' Resolves: bz#714726 Signed-off-by: Qixiang Wan --- diff --git a/pyrpkg/cli.py b/pyrpkg/cli.py index 19743d9..77cd72e 100755 --- a/pyrpkg/cli.py +++ b/pyrpkg/cli.py @@ -597,7 +597,9 @@ defined, packages will be built sequentially.""" % {'name': self.name}) "/etc/mock directory, a temporary config " "directory for mock is created and populated " "with a config file created with mock-config.") - mockbuild_parser.add_argument('--root', help='Override mock root') + mockbuild_parser.add_argument( + '--root', '--mock-config', metavar='CONFIG', + dest='root', help='Override mock configuration (like mock -r)') # Allow the user to just pass "--md5" which will set md5 as the # hash, otherwise use the default of sha256 mockbuild_parser.add_argument(