[wpkg-users] [Bug 103] New: Handling absence of config.xml
bugzilla-daemon at bugzilla.wpkg.org
bugzilla-daemon at bugzilla.wpkg.org
Fri Feb 15 13:22:24 CET 2008
http://bugzilla.wpkg.org/show_bug.cgi?id=103
Summary: Handling absence of config.xml
Product: WPKG
Version: other
Platform: PC
OS/Version: All
Status: ASSIGNED
Severity: normal
Priority: P2
Component: wpkg.js
AssignedTo: rl201 at cam.ac.uk
ReportedBy: rl201 at cam.ac.uk
QAContact: wpkg-users at lists.wpkg.org
Created an attachment (id=99)
--> (http://bugzilla.wpkg.org/attachment.cgi?id=99)
Patch to fix
By default, wpkg.js exits silently without any info if the config.xml file
isn't found. I consider this unhelpful!
(Details: wpkg.js is set to be 'quiet' before loading the config file.
getConfig().selectNodes('param') then fails but the error message is
suppressed. This patch (a) Sets 'quiet' to false before loading the config, so
errors aren't suppressed and (b) handles the absence of a config file in a more
helpful manner - i.e. skips loading the config)
"cscript wpkg.js /help" now prints the help screen.
(There is still a bug when config.xml isn't there but I'll raise that
separately)
--
Configure bugmail: http://bugzilla.wpkg.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the wpkg-users
mailing list