[wpkg-users] Forgot command, exit status 0?
Marco Gaiarin
gaio at sv.lnf.it
Wed Mar 11 18:27:54 CET 2009
Mandi! Rainer Meier
In chel di` si favelave...
> Did you specify any checks within the package?
> If yes, then WPKG can regard the package to be successfully installed
> even if some commands failed on previous execution.
Exactly. My recipe is:
<package
id="tb345rt"
name="Asymetric ToolBook Runtime (3, 4, 5)"
revision="501"
reboot="false"
priority="50">
<check type="logical" condition="and">
<check type="file" condition="versiongreaterorequal" path='%WINDIR%\ASYM\RUNTIME\MTB30RUN.EXE' value='3.0.1.0' />
<check type="file" condition="versiongreaterorequal" path='%WINDIR%\ASYM\RUNTIME\MTB40RUN.EXE' value='4.0.0.0' />
<check type="file" condition="versiongreaterorequal" path='%WINDIR%\ASYM\RUNTIME\TB50RUN.EXE' value='5.0.0.0' />
</check>
<install cmd='cmd /c if not exist "%WINDIR%\ASYM\RUNTIME" md "%WINDIR%\ASYM\RUNTIME"' />
<install cmd='%WPKGROOT%\tools\unzip -oqq "%SOFTWARE%\WPKG\tb345rt.zip" -d "%WINDIR%\ASYM\RUNTIME"' />
<install cmd='%WPKGROOT%\tools\modpath /add "%WINDIR%\ASYM\RUNTIME\"' />
<upgrade cmd='%WPKGROOT%\tools\unzip -oqq "%SOFTWARE%\WPKG\tb345rt.zip" -d "%WINDIR%\ASYM\RUNTIME"' />
<remove cmd='%WPKGROOT%\tools\modpath /del "%WINDIR%\ASYM\RUNTIME"' />
<remove cmd='cmd /c rd /q /s "%WINDIR%\ASYM\RUNTIME"' />
</package>
and clearly after the unzip check conditions are true, even if WPKG
execution stop.
Indeed i think that errors like that have to be catched by wpkg and not
generate a 'fault' or immediate stop, eg return an exit code different
from 0 instead of stop the execution.
Can be done? I've to file up a bug?
--
dott. Marco Gaiarin GNUPG Key ID: 240A3D66
Associazione ``La Nostra Famiglia'' http://www.sv.lnf.it/
Polo FVG - Via della Bontà, 7 - 33078 - San Vito al Tagliamento (PN)
marco.gaiarin(at)sv.lnf.it tel +39-0434-842711 fax +39-0434-842797
Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA!
http://www.lanostrafamiglia.it/chi_siamo/5xmille.php
(cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)
More information about the wpkg-users
mailing list