[wpkg-users] Conditional depends?

Marco Gaiarin gaio at sv.lnf.it
Wed Jan 9 18:25:07 CET 2019


Mandi! Jürgen Depicker
  In chel di` si favelave...

> > Hi, you can check on OS version, see the wiki for more info:
> > <check type="file" condition="exists" path="%PKG_SOURCE%\setup.exe" os="5\.[1-9]\.\d{4}" />
> [JDE] Hi Marco, just read this page, https://wpkg.org/Extended_host_attribute_matching , and your problem will be fixed.
> <depends package-id="..." os="..." ... />

OK, but there's no match form 'minor/major of', nor negations.

So, if i need to match 'before windows 10' i can use:

	os=" \d{1}\.\d{1}\.\d{4}"

(note the space in front of the first number), eg 'all version numbers
that start with a single digit', but this seems to me a bit kludgy/too loose.


There's some way to write a stricter matches?

-- 
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