Added support to fetch remote repodata on the fly.

See the NEWS file for more information.
This commit is contained in:
Juan RP
2014-11-26 16:07:16 +01:00
parent ad9cbaf777
commit 7401ea3e64
4 changed files with 144 additions and 41 deletions

View File

@ -48,7 +48,7 @@
*
* This header documents the full API for the XBPS Library.
*/
#define XBPS_API_VERSION "20141121-1"
#define XBPS_API_VERSION "20141126"
#ifndef XBPS_VERSION
#define XBPS_VERSION "UNSET"
@ -1401,6 +1401,16 @@ void xbps_repo_close(struct xbps_repo *repo, bool lock);
*/
char *xbps_repo_path(struct xbps_handle *xhp, const char *url);
/**
* Remotely fetch repository data and keep it in memory.
*
* @param[in] repo A struct xbps_repo pointer to be filled in.
* @param[in] url Full url to the target remote repository data archive.
*
* @return True on success, false otherwise and errno is set appropiately.
*/
bool xbps_repo_fetch_remote(struct xbps_repo *repo, const char *url);
/**
* Returns a pkg dictionary from a repository \a repo matching
* the expression \a pkg.