createrepo_c library  0.9.1
C library for metadata manipulation
Locate metadata API.

Data Structures

struct  cr_MetadataLocation
 

Functions

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

Detailed Description

Function Documentation

struct cr_MetadataLocation* cr_locate_metadata ( const char *  repopath,
gboolean  ignore_sqlite,
GError **  err 
)

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
repopathpath to directory with repodata/ subdirectory
ignore_sqliteif ignore_sqlite != 0 sqlite dbs are ignored
errGError **
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
mlMeatadaLocation