diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2009-07-14 19:48:42 +0300 |
---|---|---|
committer | Jesse Keating <jkeating@redhat.com> | 2010-03-17 10:46:24 -0700 |
commit | b7289638294f77fdbc6e8476b86f9e3d4278e1ae (patch) | |
tree | 8907453b0091f2d1f1baa99086985327afe7b0d0 /py | |
parent | fb40c3459d88f9c283fca3575b06cad9430954d9 (diff) | |
download | mock-b7289638294f77fdbc6e8476b86f9e3d4278e1ae.tar.gz mock-b7289638294f77fdbc6e8476b86f9e3d4278e1ae.tar.xz mock-b7289638294f77fdbc6e8476b86f9e3d4278e1ae.zip |
Make --with and --without set same macro values as rpmbuild does.
Diffstat (limited to 'py')
-rwxr-xr-x | py/mock.py | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -293,10 +293,12 @@ def set_config_opts_per_cmdline(config_opts, options, args): config_opts['clean'] = options.clean for option in options.rpmwith: - options.rpmmacros.append("_with_%s 1" % option) + options.rpmmacros.append("_with_%s --with-%s" % + (option.replace("-", "_"), option)) for option in options.rpmwithout: - options.rpmmacros.append("_without_%s 1" % option) + options.rpmmacros.append("_without_%s --without-%s" % + (option.replace("-", "_"), option)) for macro in options.rpmmacros: try: |