Bug 599283

Summary: RFE: publican.defaults
Product: [Community] Publican Reporter: Joshua Wulf <jwulf>
Component: publicanAssignee: Jeff Fearn 🐞 <jfearn>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 2.3CC: dmacpher, jfearn, lcarlon, mmcallis, publican-list, rlandman
Target Milestone: 3.0   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 3.0.0 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-10-31 03:11:17 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:
Bug Depends On:    
Bug Blocks: 820023    

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: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

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
publican-3.0-0.fc16.t166.noarch
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]


AND


book]$ rpm -q publican
publican-3.0-0.fc16.t166.noarch
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" >> ~/.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]
                      <revnumber>0.0-3</revnumber>
                      <date>Wed Apr 25 2012</date>
                      <author>
                           <firstname>Dude</firstname>
                           <surname>McPants</surname>
                           <email>Dude.McPants</email>
                      </author>
                         <revdescription>
                              <simplelist>
                                 <member>test</member>
                              </simplelist>
                         </revdescription>
... [output truncated]


Cool feature. Thanks for adding it!
Martin

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