diff options
author | Dan McGee <dan@archlinux.org> | 2008-01-05 17:39:38 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2008-01-05 17:39:38 -0600 |
commit | 1a0aaa20df29234250ecc0f9fc3f56bb8cf22ca1 (patch) | |
tree | a790c25ec85a4adc1b11cc737eb86e298424673a /lib/libalpm/util.c | |
parent | 5aa873edb696bbf678cbb57df43d90e23d562179 (diff) | |
download | pacman-1a0aaa20df29234250ecc0f9fc3f56bb8cf22ca1.tar.xz |
Don't stat cachedir immediately
By attempting to stat the cachedir when we load the pacman config, pacman
bails out if it is a non-existant directory, even if it will never be
needed. This is unfortunate as it is only used for sync transactions anyway.
Instead, wait until we need it in _alpm_filecache_setup to actually do
anything.
Reported as FS#9096.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/util.c')
-rw-r--r-- | lib/libalpm/util.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/libalpm/util.c b/lib/libalpm/util.c index 851a7c25..64006d1f 100644 --- a/lib/libalpm/util.c +++ b/lib/libalpm/util.c @@ -571,8 +571,6 @@ const char *_alpm_filecache_setup(void) /* cache directory does not exist.... try creating it */ _alpm_log(PM_LOG_WARNING, _("no %s cache exists, creating...\n"), cachedir); - alpm_logaction("warning: no %s cache exists, creating...\n", - cachedir); if(_alpm_makepath(cachedir) == 0) { _alpm_log(PM_LOG_DEBUG, "using cachedir: %s\n", cachedir); return(cachedir); @@ -590,7 +588,6 @@ const char *_alpm_filecache_setup(void) alpm_option_set_cachedirs(tmp); _alpm_log(PM_LOG_DEBUG, "using cachedir: %s", "/tmp/\n"); _alpm_log(PM_LOG_WARNING, _("couldn't create package cache, using /tmp instead\n")); - alpm_logaction("warning: couldn't create package cache, using /tmp instead\n"); return(alpm_list_getdata(tmp)); } |