Bug 14531 - RPM-4.0 --excludedocs
Summary: RPM-4.0 --excludedocs
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Raw Hide
Classification: Retired
Component: rpm
Version: 1.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jeff Johnson
QA Contact:
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2000-07-24 15:16 UTC by Art Boulatov
Modified: 2008-05-01 15:37 UTC (History)
1 user (show)

(edit)
Clone Of:
(edit)
Last Closed: 2001-04-03 12:17:59 UTC


Attachments (Terms of Use)

Description Art Boulatov 2000-07-24 15:16:26 UTC
With the --excludedocs install option RPM-4.0  creates empty
%{name}-%{version} dirs under %{_defaultdocdir}:

rpm -i --excludedocs -vv sysvinit-2.78-1art.i686.rpm:

> D:    file: /usr/share/doc/sysvinit-2.78 action: create
> D:    file: /usr/share/doc/sysvinit-2.78/HISTORY action: skipnstate
> D:    file: /usr/share/doc/sysvinit-2.78/Install action: skipnstate
> D:    file: /usr/share/man/en/man1/last.1.bz2 action: skipnstate

There should be a 'skipnstate' instead of 'create' in the first line.

Comment 1 Jeff Johnson 2000-07-31 15:19:15 UTC
You're correct, this will be fixed in rpm-4.1.

Comment 2 Jeff Johnson 2000-09-16 14:43:26 UTC
This issue depends on whether a directory can/should have the attribute %doc.
The current
implementation of file attributes in rpm forbids directories to have either %doc
or %config
attributes because directories may contain files other than documentation (and
so should not
be excluded with --excludedocs). Identifying whether a directory has contents
other than
documentation is non-local and expensive (read: it's not just a single bit
test).

I've marked the code, but I don't believe that the implementation is justified
at this time.

Comment 3 Jeff Johnson 2001-04-03 13:45:27 UTC
Fixed in rpm CVS, should be in rpm-4.0.3-0.4 and later.


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