OpenCSW Bug Tracker


Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004395 [pkg_get] regular use tweak N/A 2010-04-12 12:33 2010-06-09 18:40
Reporter skayser View Status public  
Assigned To bonivart
Priority normal Resolution fixed  
Status closed  
Summary 0004395: 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?
Additional Information # pkgutil -v
1.10
Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0007853)
bonivart (developer)
2010-04-12 13:50

I think that's a good idea. :-)
(0007855)
bonivart (developer)
2010-04-14 18:01

Added to r240.
(0007857)
bonivart (developer)
2010-04-14 21:19

Unrecognized option (in /etc/opt/csw/pkgutil.conf): test
Unrecognized option (using --param): foo
(0007999)
bonivart (developer)
2010-06-09 18:40

Released to current (pkgutil 2.0).


Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker