Bug 1328212 - --nocheck broken without nspawn
Summary: --nocheck broken without nspawn
Keywords:
Status: CLOSED DUPLICATE of bug 1327594
Alias: None
Product: Fedora
Classification: Fedora
Component: mock
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Clark Williams
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-18 18:03 UTC by Colin Walters
Modified: 2016-04-21 12:42 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-04-21 12:42:25 UTC
Type: Bug


Attachments (Terms of Use)

Description Colin Walters 2016-04-18 18:03:40 UTC
Executing command: ['bash', '--login', '-c', u'/usr/bin/rpmbuild -bb --target x86_64 --nodeps --define __spec_check_template exit 0;  /builddir/build/SPECS/python-ipaddress.spec']

Due to this in backend.py:

        if not check:
            # this is because EL5/6 does not know --nocheck
            # when EL5/6 targets are not supported, replace it with --nocheck
            check_opt += ["--define",  "__spec_check_template exit 0; "]

But then:

        if not util.USE_NSPAWN:
            command = ["bash", "--login", "-c"] + [' '.join(command)]

Which breaks because the argument has spaces.  Dunno about an easy fix, I'm just going to keep using nspawn.  But filing a bug as a FYI.

Comment 1 Colin Walters 2016-04-21 12:42:25 UTC

*** This bug has been marked as a duplicate of bug 1327594 ***


Note You need to log in before you can comment on or make changes to this bug.