Librepo library
1.8.0
C library for downloading linux repository metadata and packages
|
Data Structures | |
struct | LrYumRepoPath |
struct | LrYumRepo |
struct | CbData_s |
Typedefs | |
typedef struct CbData_s | CbData |
Functions | |
LrYumRepo * | lr_yum_repo_init (void) |
void | lr_yum_repo_free (LrYumRepo *repo) |
const char * | lr_yum_repo_path (LrYumRepo *repo, const char *type) |
int | hmfcb (void *clientp, const char *msg, const char *url) |
gboolean | lr_prepare_repodata_dir (LrHandle *handle, GError **err) |
gboolean | lr_store_mirrorlist_files (LrHandle *handle, LrYumRepo *repo, GError **err) |
gboolean | lr_copy_metalink_content (LrHandle *handle, LrYumRepo *repo, GError **err) |
int | lr_prepare_repomd_xml_file (LrHandle *handle, char **path, GError **err) |
gboolean | lr_check_repomd_xml_asc_availability (LrHandle *handle, LrYumRepo *repo, int fd, char *path, GError **err) |
void | lr_get_best_checksum (const LrMetalink *metalink, GSList **checksums) |
CbData * | lr_get_metadata_failure_callback (const LrHandle *handle) |
gboolean | lr_yum_download_repos (GSList *targets, GError **err) |
int hmfcb | ( | void * | clientp, |
const char * | msg, | ||
const char * | url | ||
) |
Handle mirror failure callback
clientp | Pointer to user data. |
msg | Error message. |
url | Mirror URL. |
Copies metalink content
handle | Handle object containing dest dir path |
repo | Yum repository |
err | Object for storing errors |
void lr_get_best_checksum | ( | const LrMetalink * | metalink, |
GSList ** | checksums | ||
) |
Stores best checksum on the beginning of
checksums | |
metalink | Metalink |
checksums | List of checksums |
Returns mirror failure callback data
handle | Handle object |
gboolean lr_prepare_repodata_dir | ( | LrHandle * | handle, |
GError ** | err | ||
) |
Prepares directory for repo data
handle | Handle object containing path to repo data |
err | Object for storing errors |
int lr_prepare_repomd_xml_file | ( | LrHandle * | handle, |
char ** | path, | ||
GError ** | err | ||
) |
Prepares repomd.xml file
handle | Handle object containing dest dir path |
path | |
err | Object for storing errors |
Stores mirror list files
handle | Handle object containing path to mirror list |
repo | Yum repository |
err | Object for storing errors |
gboolean lr_yum_download_repos | ( | GSList * | targets, |
GError ** | err | ||
) |
targets | |
err |
void lr_yum_repo_free | ( | LrYumRepo * | repo | ) |
Free yum repo - free its item and the repo itself.
repo | Yum repo object. |
LrYumRepo* lr_yum_repo_init | ( | void | ) |
Allocate new yum repo object.
const char* lr_yum_repo_path | ( | LrYumRepo * | repo, |
const char * | type | ||
) |
Retruns path for the file from repository.
repo | Yum repo object. |
type | Type of path. E.g. "primary", "filelists", ... |