Go to file
Juan RP 494504dbec Added support for a cachedir to store downloaded binpkgs.
libxbps:
 * Added xbps_set_cachedir() and xbps_get_cachedir(). By default it's
   set to /var/cache/xbps if not specified and it's always relative
   to the root directory.
 * Move mkpath() code from sync_remote_pkgidc.c into its own file mkpath.c
   to use it in another parts of the code.
 * Added xbps_get_binpkg_local_path(), that returns the local path to
   a binary package file, stored in cachedir or local repo.
 * Remote pkg index files are now stored directly in metadir/repodir,
   skipping the arch directory because binpkgs are now in cachedir.

xbps-bin:
 * Added -c flag to set the cachedir.
 * Check sha256 hashes in the download stage so that it can check
   a downloaded binpkg immediately once is stored.
 * If a binpkg doesn't match the hash it will be refetched.

Bump XBPS_RELVER to 20091128.

--HG--
extra : convert_revision : xtraeme%40gmail.com-20091128013841-kkcvk07lsqdr26w8
2009-11-28 02:38:41 +01:00
bin Added support for a cachedir to store downloaded binpkgs. 2009-11-28 02:38:41 +01:00
include Added support for a cachedir to store downloaded binpkgs. 2009-11-28 02:38:41 +01:00
lib Added support for a cachedir to store downloaded binpkgs. 2009-11-28 02:38:41 +01:00
.bzrignore Update .bzrignore after last changes. 2009-11-25 00:17:16 +00:00
Makefile Improve make output similar to what recent GNU configure scripts do. 2009-11-19 06:03:37 +01:00
prog.mk Fixed prog.mk rules that skipped the manpage. 2009-11-20 22:02:32 +01:00
vars.mk Improve make output similar to what recent GNU configure scripts do. 2009-11-19 06:03:37 +01:00