Bug 540361 - publican.cfg variables do not override book_info.xml
Summary: publican.cfg variables do not override book_info.xml
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Publican
Classification: Community
Component: publican
Version: 1.6
Hardware: All
OS: Linux
high
medium
Target Milestone: ---
Assignee: Jeff Fearn 🐞
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 540750 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-11-23 06:57 UTC by Christopher Curran
Modified: 2010-11-24 04:19 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
: 540750 (view as bug list)
Environment:
Last Closed: 2009-11-24 23:06:37 UTC
Embargoed:


Attachments (Terms of Use)

Description Christopher Curran 2009-11-23 06:57:54 UTC
Description of problem:
Given the existence of the publican.cfg file publican should accept arbitrary and non-latin names, products and versions. The book_info.xml file should allow any value in productnumber, title, edition, subtitle and so on.

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

How reproducible:
Every time. 

Steps to Reproduce:
1. Create a book
2. Put something funky in the edition (for example: 愛) and then configure a numerical version in the publican config file (for example: 1).
3. book breaks (see "results").
  
Actual results:
Invalid format for version. Value (愛) does not conform to constraint ([^0-9.]) at /usr/bin/publican line 362


Expected results:
These constraints should be removed if there is a value present in the configuration file.

The book should build and output an RPM with version 1 and a product with edition 愛.

Additional info:
Edition Beta/Alpha and prerelease should work. Product numbers and editions should support latin characters, non latin characters and punctuation.

Comment 1 Jeff Fearn 🐞 2009-11-24 03:02:28 UTC
*** Bug 540750 has been marked as a duplicate of this bug. ***

Comment 2 Jeff Fearn 🐞 2009-11-24 03:20:05 UTC
tested building and packaging with the following settings.

$ grep edition en-US/Book_Info.xml publican.cfg 
en-US/Book_Info.xml:    <edition>愛</edition>
publican.cfg:edition: 1.2

Built and packaged correctly with o error messages. Please supply a link to your source so we can check it for oddities.

Comment 3 Christopher Curran 2009-11-24 23:38:44 UTC
This works in 1.2. It just affected 1.1. Fixed.


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