Re: discovering whether package is installed

Jan Wielemaker <[email protected]> Wed, 9 Apr 2014 09:10:00 +0200
Newsgroups gmane.comp.ai.prolog.swi
Message-ID <[email protected]>
On 09-04-14 01:14, Anne Ogborn wrote:
> Writing some code that will be deployed, and depends on several packages. I'm writing a preflight predicate that checks that everything's happy prior to startup.
> 
> I can't seem to find a way to test if a pack is installed. Suggestions?

May be this?

?- pack_property(P, version(V)).
P = real,
V = '1.0.4' ;
...

All packages have a version, so using the version property is the same
as testing existence.

	Cheers --- Jan

> _______________________________________________
> SWI-Prolog mailing list
> [email protected]
> https://lists.iai.uni-bonn.de/mailman/listinfo.cgi/swi-prolog
>