Librepo library  1.21.1
C library for downloading linux repository metadata and packages
Yum repo high level function

Functions

gboolean lr_repoutil_yum_check_repo (const char *path, GError **err)
 
gboolean lr_repoutil_yum_parse_repomd (const char *path, LrYumRepoMd *repomd, GError **err)
 
double lr_yum_repomd_get_age (LrResult *result)
 

Detailed Description

Function Documentation

gboolean lr_repoutil_yum_check_repo ( const char *  path,
GError **  err 
)

Check checksum of selected repository.

Parameters
pathPath to directory containing "repodata" subdir.
errGError **
Returns
TRUE is everything is ok, FALSE if err is set.
gboolean lr_repoutil_yum_parse_repomd ( const char *  path,
LrYumRepoMd *  repomd,
GError **  err 
)

Parse repomd.xml file.

Parameters
pathPath to repository or to the repomd file
repomdEmpty repomd object
errGError **
Returns
TRUE is everything is ok, FALSE if err is set.
double lr_yum_repomd_get_age ( LrResult *  result)

Return age of the repomd.xml (based on mtime of the file and the current time)

Parameters
resultResult object
Returns
Age of the file (number of seconds since last modification)