1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-08-13 17:03:46 -04:00

added a missing cachedir registration

This commit is contained in:
Aurelien Foret 2006-01-05 21:02:08 +00:00
parent 522b407687
commit 13cb20aeab

View File

@ -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;
}
}