diff options
Diffstat (limited to 'src/pacman/pacman.c')
-rw-r--r-- | src/pacman/pacman.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c index 538b4a58..a5eff64e 100644 --- a/src/pacman/pacman.c +++ b/src/pacman/pacman.c @@ -767,6 +767,11 @@ int main(int argc, char *argv[]) cleanup(ret); } + /* add a default cachedir if one wasn't specified */ + if(alpm_option_get_cachedirs() == NULL) { + alpm_option_add_cachedir(CACHEDIR); + } + #if defined(HAVE_GETEUID) /* check if we have sufficient permission for the requested operation */ if(myuid > 0) { |