diff options
author | Aurelien Foret <aurelien@archlinux.org> | 2005-10-10 20:41:35 +0000 |
---|---|---|
committer | Aurelien Foret <aurelien@archlinux.org> | 2005-10-10 20:41:35 +0000 |
commit | 609466fdeb614c8a7a7bb6b5e9921d2fd2fde17f (patch) | |
tree | 95dca1525ffc5ab45ca877f6f6c78f51c9f31efd /lib/libalpm/sync.c | |
parent | b817883cddb8817f49e234d321af289c1e4f68b8 (diff) | |
download | pacman-609466fdeb614c8a7a7bb6b5e9921d2fd2fde17f.tar.xz |
added PM_OPT_CACHEDIR library option
Diffstat (limited to 'lib/libalpm/sync.c')
-rw-r--r-- | lib/libalpm/sync.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/libalpm/sync.c b/lib/libalpm/sync.c index 60385d86..d3fe238d 100644 --- a/lib/libalpm/sync.c +++ b/lib/libalpm/sync.c @@ -43,10 +43,6 @@ #include "rpmvercmp.h" #include "handle.h" -/* ORE -set CACHEDIR as a library option? */ -#define PM_CACHEDIR "var/cache/pacman/pkg" - extern pmhandle_t *handle; pmsyncpkg_t *sync_new(int type, pmpkg_t *spkg, void *data) @@ -548,7 +544,7 @@ int sync_commit(pmtrans_t *trans, pmdb_t *db_local) pmsyncpkg_t *sync = i->data; pmpkg_t *spkg = sync->pkg; char str[PATH_MAX]; - snprintf(str, PATH_MAX, "%s" PM_CACHEDIR "/%s-%s" PM_EXT_PKG, handle->root, spkg->name, spkg->version); + snprintf(str, PATH_MAX, "%s%s/%s-%s" PM_EXT_PKG, handle->root, handle->cachedir, spkg->name, spkg->version); if(trans_addtarget(tr, str) == -1) { goto error; } |