[git-buildpackage] [PATCH 3/3] gbp-buildpackage-rpm: superfluous options test
tzafrir at debian.org
tzafrir at debian.org
Sat Jul 9 17:44:05 CEST 2016
From: Tzafrir Cohen <tzafrir at debian.org>
Remove a superfluous test for options.use_mock: already tested before
calling to setup_mock().
Signed-off-by: Tzafrir Cohen <tzafrir at debian.org>
---
gbp/scripts/buildpackage_rpm.py | 17 ++++++++---------
1 file changed, 8 insertions(+), 9 deletions(-)
diff --git a/gbp/scripts/buildpackage_rpm.py b/gbp/scripts/buildpackage_rpm.py
index 7cd39e6..ca7ca23 100644
--- a/gbp/scripts/buildpackage_rpm.py
+++ b/gbp/scripts/buildpackage_rpm.py
@@ -281,15 +281,14 @@ def packaging_tag_data(repo, commit, name, version, options):
def setup_mock(options):
"""setup everything to use gbp-builder-mock"""
- if options.use_mock:
- options.builder = '/usr/share/git-buildpackage/gbp-builder-mock'
- options.cleaner = '/bin/true'
- os.environ['GBP_BUILDER_MOCK_DIST'] = options.mock_dist
- if options.mock_arch:
- os.environ['GBP_BUILDER_MOCK_ARCH'] = options.mock_arch
- if options.mock_root:
- os.environ['GBP_BUILDER_MOCK_ROOT'] = options.mock_root
- os.environ['GBP_BUILDER_MOCK_EXPORT_DIR'] = options.export_dir
+ options.builder = '/usr/share/git-buildpackage/gbp-builder-mock'
+ options.cleaner = '/bin/true'
+ os.environ['GBP_BUILDER_MOCK_DIST'] = options.mock_dist
+ if options.mock_arch:
+ os.environ['GBP_BUILDER_MOCK_ARCH'] = options.mock_arch
+ if options.mock_root:
+ os.environ['GBP_BUILDER_MOCK_ROOT'] = options.mock_root
+ os.environ['GBP_BUILDER_MOCK_EXPORT_DIR'] = options.export_dir
def create_packaging_tag(repo, commit, name, version, options):
--
2.8.1
More information about the git-buildpackage
mailing list