Helpers for createrepo_c, modifyrepo_c, mergerepo_c
Enumerations |
enum | cr_RetentionType { CR_RETENTION_DEFAULT,
CR_RETENTION_COMPATIBILITY,
CR_RETENTION_BYAGE
} |
Functions |
gboolean | cr_old_metadata_retention (const char *old_repo, const char *new_repo, cr_RetentionType type, gint64 val, GError **err) |
int | cr_remove_metadata (const char *repopath, GError **err) |
int | cr_remove_metadata_classic (const char *repopath, int retain, GError **err) |
Detailed Description
Module with helpers for createrepo_c, modifyrepo_c, mergerepo_c
Function Documentation
int cr_remove_metadata |
( |
const char * |
repopath, |
|
|
GError ** |
err | |
|
) |
| | |
Remove files related to repodata from the specified path. Files not listed in repomd.xml and with nonstandard names (standard names are names with suffixes like primary.xml.*, primary.sqlite.*, other.xml.*, etc.) are keep untouched (repodata/ subdirectory IS NOT removed!).
- Parameters:
-
| repopath | path to directory with repodata/ subdirectory |
| err | GError ** |
- Returns:
- number of removed files
int cr_remove_metadata_classic |
( |
const char * |
repopath, |
|
|
int |
retain, |
|
|
GError ** |
err | |
|
) |
| | |
Remove repodata in same manner as classic createrepo. This function removes only (primary|filelists|other)[.sqlite].* files from repodata.
- Parameters:
-
| repopath | path to directory with repodata/subdirectory |
| retain | keep around the latest N old, uniquely named primary, filelists and otherdata xml and sqlite files. If <1 no old files will be kept. |
| err | GError ** |
- Returns:
- cr_Error code