[wpkg-users] Regex in depend tag? Or other method?
Tomasz Chmielewski
mangoo at wpkg.org
Mon Oct 6 14:37:35 CEST 2008
Robin Roevens schrieb:
>
> Hello all
>
> I'm fairly new to WPKG and considering to use it so at the moment I'm
> designing the packages and profiles that I'm hoping to use...
> But I stumbled on a practical problem: Some computers have/need firefox
> 1.5 and some have/need firefox 3.x .. So I have 2 packages: firefox15
> and firefox3
> But then I also have AdobeFlash-firefoxplugin as a package, which
> depends on firefox.. Can you already see my problem here?
>
> Is there a way for this package to depend on firefox15 OR firefox3
> whatever is installed without having to create 2 seperate packages with
> the dependancy as the only difference.
> I was thinking about using a regex "firefox.+", but since it is nowhere
> documented, I assume it is not implemented in wpkg either and regexes
> only work on hosts?
> Or is there some other decent method to handle this problem?
Currently, there is no regex support in package dependencies.
Technically, you could add such a line to both firefox packages:
<install cmd="\\path\to\browserplugins.bat" />
(and a proper check for a plugin if you want).
--
Tomasz Chmielewski
http://wpkg.org
More information about the wpkg-users
mailing list