Mantis - pkg_get
Viewing Issue Advanced Details
4395 regular use tweak N/A 2010-04-12 12:33 2010-06-09 18:40
skayser  
bonivart  
normal  
closed  
fixed  
none    
none  
0004395: RFE: Warn on invalid options in config file
I just encountered a typo in one of our pkgutil.conf configuration files. pkgaddopts was spelled wrongly and thus not used. However, as pkgutil didn't warn me about the typo I only noticed this halfway through the installation process. This time it wasn't serious, just a missing -S, but could have been different if I would have relied on -G for instance.

# grep ^p /etc/opt/csw/pkgutil.conf
pkgliststyle=1
pgkgaddopts=-S

# pkgutil -V | grep pkgaddopts
pkgaddopts not set (default: none)

What would you think about emitting warning/error messages when there are unknown (i.e. possibly mis-spelled) options in the configuration file?
# pkgutil -v
1.10
Issue History
2010-04-12 12:33 skayser New Issue
2010-04-12 13:49 bonivart Status new => assigned
2010-04-12 13:49 bonivart Assigned To => bonivart
2010-04-12 13:50 bonivart Note Added: 0007853
2010-04-14 18:01 bonivart Note Added: 0007855
2010-04-14 18:01 bonivart Status assigned => resolved
2010-04-14 18:01 bonivart Resolution open => fixed
2010-04-14 21:19 bonivart Note Added: 0007857
2010-06-09 18:40 bonivart Note Added: 0007999
2010-06-09 18:40 bonivart Status resolved => closed

Notes
(0007853)
bonivart   
2010-04-12 13:50   
I think that's a good idea. :-)
(0007855)
bonivart   
2010-04-14 18:01   
Added to r240.
(0007857)
bonivart   
2010-04-14 21:19   
Unrecognized option (in /etc/opt/csw/pkgutil.conf): test
Unrecognized option (using --param): foo
(0007999)
bonivart   
2010-06-09 18:40   
Released to current (pkgutil 2.0).