lib/repo: add xbps_repo_remove and use it in xbps_rpool_foreach

https://github.com/void-linux/xbps/issues/3
This commit is contained in:
Duncaen
2019-06-15 19:15:22 +02:00
committed by Juan RP
parent 2ae5dc304b
commit b2f5afd02e
3 changed files with 37 additions and 2 deletions

View File

@ -48,7 +48,7 @@
*
* This header documents the full API for the XBPS Library.
*/
#define XBPS_API_VERSION "20190614"
#define XBPS_API_VERSION "20190615"
#ifndef XBPS_VERSION
#define XBPS_VERSION "UNSET"
@ -1476,6 +1476,16 @@ xbps_dictionary_t xbps_rpool_get_pkg_plist(struct xbps_handle *xhp,
*/
bool xbps_repo_store(struct xbps_handle *xhp, const char *url);
/**
* Removes repository \a url from the repository pool.
*
* @param[in] xhp Pointer to the xbps_handle struct.
* @param[in] uri Repository URI to remove.
*
* @return True on success, false otherwise.
*/
bool xbps_repo_remove(struct xbps_handle *xhp, const char *url);
/**
* Creates a lock for a local repository to obtain exclusive access (write).
*