Bug 661948
| Summary: | Updating the database for packaged books is fragile | ||
|---|---|---|---|
| Product: | [Community] Publican | Reporter: | Jeff Fearn 🐞 <jfearn> |
| Component: | publican | Assignee: | Jeff Fearn 🐞 <jfearn> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Ruediger Landmann <rlandman+disabled> |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | 2.5 | CC: | mmcallis, publican-list, rlandman |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | 2.6 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-07-26 00:42:35 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Jeff Fearn 🐞
2010-12-10 03:35:55 UTC
Added update_db action, updated web-spec.xsl, POD, and bash complete. Fixed in revision 1686 Back ported to branches/publican-2x Committed revision 1812. I tested this in build 2.5-2.fc15.t14 When I tried to update a package, yum gave me: Error in PREUN scriptlet in rpm package Documentation-0806-0-web-en-US Documentation-0806-0-web-en-US-0-0.el5.noarch was supposed to be removed but is not! so then I tried to remove the existing package with RPM and got: Unknown option: add Unknown option: lang Unknown option: formats Unknown option: name Unknown option: version Unknown option: product Unknown option: subtitle Unknown option: abstract I recognised these as the options for the update_db action, so I thought I'd just try "publican update_db" on the command line, which gave me: 'update_db' is an unknown action! Valid actions are: <followed by a list of valid publican actions, update_db not among them> However, another package installed and uninstalled cleanly: Red_Hat_Enterprise_Linux-Power_Management_Guide-6-web-de-DE.noarch 0:1.0-4.fc15 (In reply to comment #4) > However, another package installed and uninstalled cleanly: > > Red_Hat_Enterprise_Linux-Power_Management_Guide-6-web-de-DE.noarch 0:1.0-4.fc15 Heh; of course this used the raw perl command because I just built it with rpmbuild --rebuild... D'oh! Oops, missed the action entry when back porting this code.
Committed revision 1837.
$ publican update_db --help
update_db
Add or remove database entries. Used for processing pre-build books, such as when building packages.
Options:
--help Display help message
--config=s Use a nonstandard config file
--common_config=s Override path to Common_Config directory
--common_content=s Override path to Common_Content directory
--nocolours Disable ANSI colourisation of logging.
--quiet Disable all logging.
--site_config=<SITE_CONFIG> WebSite configuration file to use or create.
--add Add a database enrty
--del Delete a database entry
--lang=<LANG> The language the XML will be written in
--product=<PRODUCT> The name of the product
--version=<VERSION> The version of the product
--name=<NAME> The name of the book, article, set, or brand
--formats=<FORMATS> Comma-separated list of formats, for example: html,pdf,html-single,html-desktop,txt,epub
--subtitle=<SUBTITLE> Sub title for a book
--abstract=<ABSTRACT> Abstract for a book
--product_label=<PRODUCT_LABEL> product label for a book
--version_label=<VERSION_LABEL> version label for a book
--name_label=<NAME_LABEL> name label for a book
|