[wpkg-users] Conditional depends?

Marco Gaiarin gaio at sv.lnf.it
Thu Jan 10 09:57:58 CET 2019


Mandi! Stefan Pendl
  In chel di` si favelave...

> > There's some way to write a stricter matches?
> I have the following flash player package that manages active-x only on Win7
> and below:

Ok, so rewriting condition for depends, would be:

        <!-- Package depends always on Flash Plugin (FF) -->
        <depends package-id="flashplugin" />
        <!-- Package depends on Flash ActiveX only on OS < Win10 -->
        <depends package-id="flash" >
                <condition>
                        <check type="host" condition="os" value="(5\.\d|6\.[01])\.\d{4}" />
                </condition>
        </depends>

Right?

-- 
dott. Marco Gaiarin				        GNUPG Key ID: 240A3D66
  Associazione ``La Nostra Famiglia''          http://www.lanostrafamiglia.it/
  Polo FVG   -   Via della Bontà, 7 - 33078   -   San Vito al Tagliamento (PN)
  marco.gaiarin(at)lanostrafamiglia.it   t +39-0434-842711   f +39-0434-842797

		Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA!
      http://www.lanostrafamiglia.it/index.php/it/sostienici/5x1000
	(cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)


More information about the wpkg-users mailing list