Bug 957956
| Summary: | get_keywords always looks for a file named <type>_Info.xml even when info_file set. | ||
|---|---|---|---|
| Product: | [Community] Publican | Reporter: | Stephen Gordon <sgordon> |
| Component: | publican | Assignee: | Jeff Fearn 🐞 <jfearn> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | tools-bugs <tools-bugs> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 3.0 | CC: | aigao, jfearn, pbokoc, rlandman |
| Target Milestone: | 3.2 | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | 3.2.0 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-08-09 04:47:42 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: | |
| Embargoed: | |||
To ssh://git.fedorahosted.org/git/publican.git af686e4..8ba4ff6 HEAD -> devel HSS-QE has reviewed and declined this request. QE for this bug will be handled by IED. Verified in publican-3.1.5-0.fc17.t62.noarch. The fix for this bug has been shipped in publican 3.2.0 |
Description of problem: My book uses the info_file directive in publican.cfg to set an info file other than Book_Info.xml: info_file: bk_openstackinstallguide.xml When I do a PDF build (this doesn't seem to impact other formats) I get this: keyword list can not be calculated before building. at /usr/share/perl5/vendor_perl/Publican/Builder.pm line 1123. Looking in lib/Publican.pm I can see that the error appears to come from this logic in the get_keywords sub: 1298 my @keywords; 1299 1300 my $tmp_dir = $self->param('tmp_dir'); 1301 my $file = "$tmp_dir/$lang/xml/" . $self->param('type') . '_Info.xml'; 1302 1303 croak( maketext("keyword list can not be calculated before building.") ) 1304 unless ( -f $file ); As above it appears when calculating the keyword list the info_file directive isn't taken into account. Copying my actual "book" file (which includes the info and is the one I set info_file to) to Book_Info.xml gets me past this error (I run into a later failure in wkhtmltopdf but I am still investigating that). Version-Release number of selected component (if applicable): publican-3.1.5-0.fc18.noarch