[bug-notifications] [pkgutil 0004395]: RFE: Warn on invalid options in config file

Mantis Bug Tracker noreply at opencsw.org
Mon Apr 12 13:50:04 CEST 2010


A NOTE has been added to this issue. 
====================================================================== 
http://www.opencsw.org/mantis/view.php?id=4395 
====================================================================== 
Reported By:                skayser
Assigned To:                bonivart
====================================================================== 
Project:                    pkgutil
Issue ID:                   4395
Category:                   regular use
Reproducibility:            N/A
Severity:                   tweak
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             2010-04-12 12:33 CEST
Last Modified:              2010-04-12 13:50 CEST
====================================================================== 
Summary:                    RFE: Warn on invalid options in config file
Description: 
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?
====================================================================== 

---------------------------------------------------------------------- 
 (0007853) bonivart (manager) - 2010-04-12 13:50
 http://www.opencsw.org/mantis/view.php?id=4395#c7853 
---------------------------------------------------------------------- 
I think that's a good idea. :-)



More information about the bug-notifications mailing list