Red Hat Bugzilla – Bug 1004955
Publican print_unused incorrectly detects files from higher levels in the directory structure (but within the book) as unused.
Last modified: 2013-12-18 21:46:41 EST
Created attachment 794502 [details]
Description of problem:
Publican print_used incorrectly detects files from higher levels in the directory structure as unused (that is where they are included with a relative path such as ../).
I came across this in a real book but I've constructed a simpler example (attached as well). In this tree:
│ ├── Author_Group.xml
│ ├── Book_Info.xml
│ ├── common
│ │ └── Chapter.xml
│ ├── images
│ │ └── icon.svg
│ ├── Preface.xml
│ ├── Revision_History.xml
│ ├── Section.xml
│ ├── Unused_Test.ent
│ └── Unused_Test.xml
Unused_Test.xml includes common/Chapter.xml
common/Chapter.xml includes ../Section.xml
Running print_unused on this tree results in:
$ publican print_unused
List of unused XML files in en-US
Removing Section.xml will however result in the book failing to build.
See also: Bug # 740417
Version-Release number of selected component (if applicable):
Section.xml is listed as unused.
Section.xml and other files include from paths earlier in the tree (but still within the book) should not be listed as unused.
HSS-QE has reviewed and declined this request. QE for this bug will be handled by IED.
2097c0f..9202cbd HEAD -> devel
Verified on publican-3.9.9-0.fc19.t16.noarch