[wpkg-users] Check for action WPKG is doing on a package

Malte Hohmann DoNotSendToThisAddress at gmx.de
Tue Jan 24 21:51:49 CET 2012



On 13.01.2012 13:59, Stefan Pendl wrote:
> Am 13.01.2012 13:39, schrieb Malte Hohmann:
>> Hi there,
>>
>> I really love the possibility of inclusion and conditional execution
>> of commands. This allows much more flexibility in the development of
>> packages. However, I am missing the possibility to check what action
>> WPKG is performing on a package.
>>
> 
> One way would be to define a custom command type and include that where
> appropriate.
> 
> <!-- code start (watch for line wraps) -->
> 
> <command type="shared" .../>
> 
> <install include="shared"/>
> <install include="upgrade"/>
> 
> <upgrade cmd=... />
> <upgrade ... />
> <upgrade ... />
> <upgrade ... />
> 
> <remove include="shared"/>
> <remove ... />
> 
> <!-- code end -->
> 
> ----
> 
> Another way is to let install include the upgrade commands, but add one
> of its own commands.
> 
> <!-- code start (watch for line wraps) -->
> 
> <install cmd=.../>
> <install include="upgrade"/>
> 
> <upgrade cmd=.../>
> <upgrade ...
> <upgrade ...
> <upgrade ...
> 
> <!-- code end -->
> 
> ----
> 
> If the extra command is in between of the upgrade command sequence, you
> could split the command sequence using custom command types too.
> 
> <!-- code start (watch for line wraps) -->
> 
> <command type="upgrade_part_1" .../>
> <command type="upgrade_part_1" .../>
> <command type="upgrade_part_1" .../>
> 
> <command type="upgrade_part_2" .../>
> <command type="upgrade_part_2" .../>
> <command type="upgrade_part_2" .../>
> 
> <install include="upgrade_part_1"/>
> <install cmd=... />
> <install include="upgrade_part_2"/>
> 
> <upgrade include="upgrade_part_1"/>
> <upgrade include="upgrade_part_2"/>
> 
> <!-- code end -->
> 
> This is not tested, but you should get the idea.
> I would not mix new and old syntax, but it was shorter to post ;-)
> 
> 
> -- 
> Stefan P.
> 
> Top-posting:
> A: Because it messes up the order in which people normally read text.
> Q: Why is top-posting such a bad thing?
> A: Top-posting.
> Q: What is the most annoying thing in e-mail?
> -------------------------------------------------------------------------
> wpkg-users mailing list archives >>
> http://lists.wpkg.org/pipermail/wpkg-users/
> _______________________________________________
> wpkg-users mailing list
> wpkg-users at lists.wpkg.org
> http://lists.wpkg.org/mailman/listinfo/wpkg-users
> 
Hi, thanks for the hint. In fact it is really useful and does work
great, but it also makes big packages less readable and, in some
situations, harder to update. You need to check all dependencies more
than twice, so that adding a simple "what is wpkg doing right now"-check
would really come handy.

But hey, it's just an idea and maybe someone picks it up.

Regards



More information about the wpkg-users mailing list