Bug 1328212

Summary: --nocheck broken without nspawn
Product: [Fedora] Fedora Reporter: Colin Walters <walters>
Component: mockAssignee: Clark Williams <williams>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: jdisnard, mebrown, msimacek, msuchy, praiskup, williams
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-21 12:42:25 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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 ***