I’m trying to get the below relevance working. If I omit the debian section it works in the Fixlet Debugger.
((versions of regapps “chrome.exe”);(versions of applications “Google Chrome.app”);versions of ((packages of debianpackages) whose (it as string contains “google-chrome”))) whose (it < version “72.0.3626.121”)
I’m trying to write one relevance statement that checks to see if there is an installed version of chrome whose version is less than “72.0.3626.121” for Windows, Mac, and Ubuntu.
The Windows and Mac ones seem to work fine, but I’m running into trouble with the Ubuntu one.
Am I doing something obviously wrong in the following?
(
versions of
(
(
packages of debianpackages
)
whose
(
it as string contains "google-chrome"
)
)
)
whose
(
it < version "72.0.3626.121"
)
You might also want to use name of it when doing the google-chrome match, since I’m not sure exactly what a package returns when cast to a string directly.
exists
(
(
if
(
windows of operating system
)
then
(
versions of regapps "chrome.exe"
)
else
(
if
(
mac of operating system
)
then
(
versions of applications "Google Chrome.app"
)
else
(
versions of
(
(
packages of debianpackages
)
whose
(
name of it contains "google-chrome"
)
)
)
)
)
whose
(
it as string as version < version "72.0.3626.121"
)
)