Name

Pkg::IsAvailable — Check if package (tag) is available

Synopsis

boolean IsAvailable ( string  tag );

Parameters

string tag

Return

boolean

Description

returns a 'true' if the tag is available on any of the currently active installation sources. (i.e. it is installable)

tag can be a package name, a string from requires/provides or a file name (since a package implictly provides all its files)

Usage

   Pkg::IsAvailable ("yast2") -> true