Libzypp/IsAvailable

From openSUSE

Contents

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

Notes

Current implementation does not support tags, only the package name.


Last edit in Trac '01/27/06 15:11:31' by 'visnov'

Last edit in Trac '01/27/06 15:11:31' by 'visnov'

Last edit in Trac '01/27/06 15:11:31' by 'visnov'

Last edit in Trac '01/27/06 15:11:31' by 'visnov'