Bug 1313152 - post script fail when dnf --setopt=tsflags=nodocs install audit
Summary: post script fail when dnf --setopt=tsflags=nodocs install audit
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: audit
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Steve Grubb
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-01 05:54 UTC by Yu Watanabe
Modified: 2016-03-18 15:25 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-03-18 15:25:21 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


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