Mandi! Lukasz Zalewski
  In chel di` si favelave...

> P.S. In addition (sorry for being so cheeky) it would be nice to have  
> arch="" in install, upgrade and remove <install arch="x86|AMD64">. I  
> know one can use if %PROCESDSOR_ARCHITECTURE% == "x86" but it would  
> remove some of the duplicated code and reduce possibility of a mistake  

If this is a contest i definitely vote for a os='' and arch='' tag in
nodes (<package, <install|upgrade|remove, ...).

I'm not a WSH programmer (i'm not a programmer at all ;), but seems to
me that can be easily implemented without disrupt all the WPKG code (a
simple condition before loading the node...).

I think that the source of check could be some environment variable
(%WPKG_OS% and %WPKG_ARCH%?) that can be calculated on pre-script,
without adding to WPKG code the 'os detection' code that can clearly be
a mess.

If variables are not defined, simply mean 'all'.

-- 
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)
-------------------------------------------------------------------------
wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/
_______________________________________________
wpkg-users mailing list
wpkg-users@lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/wpkg-users

Reply via email to