Bug 599283 - RFE: publican.defaults
Summary: RFE: publican.defaults
Alias: None
Product: Publican
Classification: Community
Component: publican
Version: 2.3
Hardware: All
OS: Linux
Target Milestone: 3.0
Assignee: Jeff Fearn 🐞
QA Contact: Fedora Extras Quality Assurance
Depends On:
Blocks: 820023
TreeView+ depends on / blocked
Reported: 2010-06-03 03:16 UTC by Joshua Wulf
Modified: 2014-10-19 22:58 UTC (History)
6 users (show)

Fixed In Version: 3.0.0
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2012-10-31 03:11:17 UTC

Attachments (Terms of Use)

Description Joshua Wulf 2010-06-03 03:16:45 UTC
Could we have a per-user publican.defaults file that loads up default build outputs?

This would allow a user to configure their machine for their most common use case.

Comment 1 Jeff Fearn 🐞 2010-06-03 03:37:29 UTC
I have no words to describe how low this priority is.

Comment 2 Bug Zapper 2010-11-03 13:40:40 UTC
This message is a reminder that Fedora 12 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 12.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '12'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 12's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 12 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 

Comment 3 Jeff Fearn 🐞 2012-03-12 05:59:39 UTC
Added handling for _HOME_/.publican.cfg to handle default values for command line arguments. Currently supports: firstname, surname, email, lang, formats, langs

_HOME_ should be cross platform as it's fetched via File::HomeDir.

Pushed To ssh://git.fedorahosted.org/git/publican.git
   d497197..39e7186  master -> master

Comment 4 Martin Prpič 2012-04-25 16:47:08 UTC
Verified for "publican lang_stat" and "publican add_revision" on Fedora release 16 (Verne).

book]$ rpm -q publican
book]$ publican lang_stats 
Use of uninitialized value $opts{"lang"} in string eq at /usr/bin/publican line 806, <FH> line 6.
'lang' is a mandatory argument at /usr/bin/publican line 812
book]$ echo "lang: en-US" >> ~/.publican.cfg 
book]$ publican lang_stats 
File Name                         Untranslated      Fuzzy Translated
Total for en-US                              0          0          0

... [output truncated]


book]$ rpm -q publican
book]$ publican add_revision --member "test"
firstname is a required option for add_revision at /usr/bin/publican line 835
book]$ echo "firstname: Dude" >> ~/.publican.cfg 
book]$ echo "surname: McPants" >> ~/.publican.cfg 
book]$ echo "email: Dude.McPants@awesome.com" >> ~/.publican.cfg 
book]$ publican add_revision --member "test"
     Processing file en-US/Revision_History.xml -> en-US/Revision_History.xml
book]$ cat en-US/Revision_History.xml 
... [output truncated]
                      <date>Wed Apr 25 2012</date>
... [output truncated]

Cool feature. Thanks for adding it!

Comment 5 Dan Macpherson 2012-06-16 04:35:30 UTC
Documentation needed for ~/.publican.cfg defaults.

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