summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/alpm.c
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2005-03-26 09:50:27 +0100
committerAurelien Foret <aurelien@archlinux.org>2005-03-26 09:50:27 +0100
commitbcfc1244b4114848be3f4cd67099318b6f99413d (patch)
tree4802534be60e533cbcb6c27aefedee22fc5cc2c4 /lib/libalpm/alpm.c
parent2e28303ee545077f4f4739426ddb6742116621b9 (diff)
downloadpacman-bcfc1244b4114848be3f4cd67099318b6f99413d.tar.gz
pacman-bcfc1244b4114848be3f4cd67099318b6f99413d.tar.xz
updated comments
Diffstat (limited to 'lib/libalpm/alpm.c')
-rw-r--r--lib/libalpm/alpm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libalpm/alpm.c b/lib/libalpm/alpm.c
index d4854a3d..41b604ad 100644
--- a/lib/libalpm/alpm.c
+++ b/lib/libalpm/alpm.c
@@ -241,6 +241,9 @@ int alpm_db_update(PM_DB *db, char *archive, char *ts)
/* ORE
stat() the archive to check it exists */
+ /* Cache needs to be rebuild */
+ db_free_pkgcache(db);
+
/* remove the old dir */
_alpm_log(PM_LOG_FLOW2, "removing %s (if it exists)\n", db->path);
/* ORE