Locate metadata API.

Data Structures

struct  cr_MetadataLocation

Functions

struct cr_MetadataLocationcr_locate_metadata (const char *repopath, int ignore_sqlite, GError **err)
void cr_metadatalocation_free (struct cr_MetadataLocation *ml)

Function Documentation

struct cr_MetadataLocation* cr_locate_metadata ( const char *  repopath,
int  ignore_sqlite,
GError **  err 
) [read]

Parses repomd.xml and returns a filled cr_MetadataLocation structure. Remote repodata (repopath with prefix "ftp://" or "http://") are dowloaded into a temporary directory and removed when the cr_metadatalocation_free() is called on the cr_MetadataLocation.

Parameters:
repopath path to directory with repodata/ subdirectory
ignore_sqlite if ignore_sqlite != 0 sqlite dbs are ignored
err GError **
Returns:
filled cr_MetadataLocation structure or NULL
void cr_metadatalocation_free ( struct cr_MetadataLocation ml  ) 

Free cr_MetadataLocation. If repodata were downloaded remove a temporary directory with repodata.

Parameters:
ml MeatadaLocation

Generated on 22 Oct 2014 for createrepo_c library by  doxygen 1.6.1