[wpkg-users] [Bug 184] Add an inherit attribute to package actions
bugzilla-daemon at bugzilla.wpkg.org
bugzilla-daemon at bugzilla.wpkg.org
Mon Oct 10 09:22:18 CEST 2011
http://bugzilla.wpkg.org/show_bug.cgi?id=184
--- Comment #5 from Rainer Meier <r.meier at wpkg.org> ---
> You mention that old style commands like outside <commands> would be executed
> first. Where does that leave 'install1.cmd' in your example above?
Oh, I actually did intend to make an example which contains no bare commands
oudside the <commands /> node but then forgot to remove it when copying from
the previous example I've made...
Anyway the correct order in this case would be as follows:
- install1.cmd
- prepare1.cmd
- prepare2.cmd
- install.cmd
- cleanup.cmd
If the "oudside" command includes other command types then these are always
inserted first as well:
<package id='pidgin' name='Pidgin IM' revision='2.10.0'>
<commands>
<command type="install" include='prepare' />
<command type="install" cmd='"%SOFTWARE%\install.cmd"' />
<command type="install" include='cleanup' />
<command type="remove" include='prepare' />
<command type="remove" cmd='"%SOFTWARE%\remove.cmd"' />
<command type="remove" include='cleanup' />
<command type="upgrade" cmd='"%SOFTWARE%\upgrade.cmd"' />
<command type="downgrade" cmd='"%SOFTWARE%\downgrade.cmd"' />
<command type="prepare" cmd='"%SOFTWARE%\prepare1.cmd"' />
<command type="prepare" cmd='"%SOFTWARE%\prepare2.cmd"' />
<command type="cleanup" cmd='"%SOFTWARE%\cleanup.cmd"' />
</commands>
<install cmd='"%SOFTWARE%\install1.cmd"' />
<install include="prepare" />
</package>
Would execute the following
- install1.cmd
- prepare1.cmd (included from outside <install />)
- prepare2.cmd (included from outside <install />)
- prepare1.cmd (included from inside <command type="install" />)
- prepare2.cmd (included from inside <command type="install" />)
- install.cmd
- cleanup.cmd (included from inside <command type="install" />)
So as you can see you can even include "inside"-commands from
"outside"-commands if you like.
Another note: The "type" attribute is ignored for "outside"-commands so even if
you specify
<install type="remove" cmd="..." />
it will execute during installation.
--
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