Red Hat Bugzilla – Bug 729824
RFE: relax conditions on the (software) version: parameter
Last modified: 2011-09-05 23:56:45 EDT
Description of problem:
The version: parameter (often set through <productnumber> in the Book_Info.xml file) is presently limited to digits and dots. This prevents setting useful values like "6-Beta".
This value isn't used for the version number of the package in which the book ships; it's used as part of the *name* of that package, so it only needs to be constrained to characters permissible in the N of the NVR, not the (stricter) V.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Set "version: 6-Beta" in the publican.cfg file of a book
2. Attempt to build or package the book
Build fails because version: contains letters
Changed restriction from '[^0-9.]' anything is not a number or a dot, to '^[^0-9]' first character is not a number. So as long as the version starts with a number publican is happy.
Committed revision 1861.
Publican 2.7 has been release and includes a fix for this issue.