Bug 1313152

Summary: post script fail when dnf --setopt=tsflags=nodocs install audit
Product: [Fedora] Fedora Reporter: Yu Watanabe <watanabe.yu>
Component: auditAssignee: Steve Grubb <sgrubb>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: sgrubb, watanabe.yu
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-03-18 15:25:21 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 Yu Watanabe 2016-03-01 05:54:05 UTC
Description of problem:

The current implementation to set default rules does not work if the system is installed with dnf option '--setopt=tsflags=nodocs' or anaconda kickstart option '%packages --nodocs'. If the options set, the files under /usr/share/doc are not installed. So, the post script fail.
%%%%%%%%%%
  Installing  : audit-2.5-3.fc24.x86_64                                 497/584 
cp: cannot stat '/usr/share/doc/audit/rules/10-no-audit.rules': No such file or directory
%%%%%%%%%%

Version-Release number of selected component (if applicable):

audit-2.5-3.fc24

How reproducible:

Always

Steps to Reproduce:
1. dnf --setopt=tsflags=nodocs install audit
2.
3.

Actual results:

Install finishes without any error message.

Expected results:

The post script outputs the above error message.

Additional info:

Comment 1 Steve Grubb 2016-03-18 15:25:21 UTC
I fixed the postscript to be conditional. Pushed to rawhide. Thanks for reporting the issue.