![]() |
XBPS Library API
0.19
The X Binary Package System
|
Functions | |
prop_dictionary_t | xbps_rindex_get_pkg (struct xbps_rindex *ri, const char *pkg) |
prop_dictionary_t | xbps_rindex_get_virtualpkg (struct xbps_rindex *ri, const char *pkg) |
prop_dictionary_t xbps_rindex_get_pkg | ( | struct xbps_rindex * | ri, |
const char * | pkg | ||
) |
Returns a pkg dictionary from a repository index ri matching the expression pkg.
[in] | ri | Pointer to an xbps_rindex structure. |
[in] | pkg | Package expression to match in this repository index. |
Definition at line 193 of file rindex_get.c.
References xbps_rindex::repod, xbps_rindex::uri, xbps_pkg_version(), and xbps_pkgpattern_version().
prop_dictionary_t xbps_rindex_get_virtualpkg | ( | struct xbps_rindex * | ri, |
const char * | pkg | ||
) |
Returns a pkg dictionary from a repository index ri matching the expression pkg. On match the first package matching the virtual package expression will be returned.
[in] | ri | Pointer to an xbps_rindex structure. |
[in] | pkg | Package expression to match in this repository index. |
Definition at line 143 of file rindex_get.c.
References xbps_rindex::repod, xbps_rindex::uri, xbps_match_virtual_pkg_in_dict(), xbps_pkg_version(), xbps_pkgpattern_version(), and xbps_rindex::xhp.