summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2006-01-05 22:02:08 +0100
committerAurelien Foret <aurelien@archlinux.org>2006-01-05 22:02:08 +0100
commit13cb20aeabe147629b22a6c85b6791044bbae465 (patch)
treec35c9c4b651e8a96e661fd5a9a50f407277ee673 /src
parent522b40768789cc807e032c571da11ac33310de26 (diff)
downloadpacman-13cb20aeabe147629b22a6c85b6791044bbae465.tar.gz
pacman-13cb20aeabe147629b22a6c85b6791044bbae465.tar.xz
added a missing cachedir registration
Diffstat (limited to 'src')
-rw-r--r--src/pacman/sync.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pacman/sync.c b/src/pacman/sync.c
index 41200e8e..aa4006b3 100644
--- a/src/pacman/sync.c
+++ b/src/pacman/sync.c
@@ -660,6 +660,10 @@ int pacman_sync(list_t *targets)
MSG(NL, "warning: couldn't create package cache, using /tmp instead");
alpm_logaction("warning: couldn't create package cache, using /tmp instead");
snprintf(ldir, PATH_MAX, "/tmp");
+ if(alpm_set_option(PM_OPT_CACHEDIR, (long)ldir) == -1) {
+ ERR(NL, "failed to set option CACHEDIR (%s)\n", alpm_strerror(pm_errno));
+ goto cleanup;
+ }
varcache = 0;
}
}