createrepo_c library
0.9.1
C library for metadata manipulation
|
Data Structures | |
struct | cr_MetadataLocation |
Functions | |
struct cr_MetadataLocation * | cr_locate_metadata (const char *repopath, gboolean ignore_sqlite, GError **err) |
void | cr_metadatalocation_free (struct cr_MetadataLocation *ml) |
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.
repopath | path to directory with repodata/ subdirectory |
ignore_sqlite | if ignore_sqlite != 0 sqlite dbs are ignored |
err | GError ** |
void cr_metadatalocation_free | ( | struct cr_MetadataLocation * | ml | ) |
Free cr_MetadataLocation. If repodata were downloaded remove a temporary directory with repodata.
ml | MeatadaLocation |