From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040422 Description of problem: The policy.spec file contains a syntax error -- notice the double pair of ampersands in the second command: %post sources if [ -x /usr/bin/selinuxenabled ]; then make -W /etc/security/selinux/src/policy/users \ -C /etc/security/selinux/src/policy > /dev/null 2>&1 /usr/bin/selinuxenabled && && [ -e /selinux/policyvers ] && \ make -C /etc/security/selinux/src/policy load fi exit 0 Version-Release number of selected component (if applicable): policy-sources-1.11.2-18 How reproducible: Always Steps to Reproduce: rpm -Uvh policy-sources-1.11.2-18.noarch.rpm Actual Results: /var/tmp/rpm-tmp.93704: line 4: syntax error near unexpected token `&&' /var/tmp/rpm-tmp.93704: line 4: ` /usr/bin/selinuxenabled && && [ -e selinux/policyvers ] && \' error: %post(policy-sources-1.11.2-18) scriptlet failed, exit status 2 Expected Results: No error should have occurred. Additional info: The following changelog entry seems to be relevant: * Thu Apr 22 2004 Dan Walsh <dwalsh> 1.11.2-18 - [...] - Check if /selinux is mounted before reload
*** Bug 121685 has been marked as a duplicate of this bug. ***
The bug is on line 126 of the spec file: /usr/bin/selinuxenabled && && [ -e /selinux/policyvers ] && \
Fixed in policy-1.11.2-20
*** This bug has been marked as a duplicate of 121892 ***
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.