[wpkg-users] Using package variable in tests

Daniel Dehennin daniel.dehennin at ac-caen.fr
Fri Apr 25 09:00:50 CEST 2008


Hello,

Tying to install mozilla firefox with WPKG, it seems to me that
variables defined in packages are not expanded when doing tests.

<variable name='MozDir' value='%ProgramFiles%\Mozilla Firefox'/>

<!-- Le fichier all.js inclu bien mozilla.cfg -->
<check type='file' condition='exists' path='%MozDir%\greprefs\all.js'/>
<check type='execute' 
       path='"%WPKGBIN%\qgrep.exe" -B -L "pref(\"general.config.filename\", \"mozilla.cfg\");" "%MozDir%\greprefs\all.js"'/>

<install cmd='%ComSpec% /c echo pref("general.config.filename", "mozilla.cfg"); >> "%MozDir%\greprefs\all.js"'/>

<remove cmd='%WPKGBIN%\gsar.exe -o -s"pref(\"general.config.filename\", \"mozilla.cfg\");" -r "%MozDir%\greprefs\all.js"'/>

In the debug log I got:
====

The path '"%MozDir%\greprefs\all.js"' does not exist: the test failed
[...]
Reading variables from package
Reading variables from package Firefox Configuration
Got variable 'MozDir' of value '%ProgramFiles%\Mozilla Firefox'
Stored 1 variables from package
[...]

====

Regards.
-- 
Daniel Dehennin
RAIP de l'Orne



More information about the wpkg-users mailing list