From 839a64df411115599bdef7a5c14d180111842523 Mon Sep 17 00:00:00 2001 From: Aurelien Foret Date: Tue, 21 Mar 2006 19:38:00 +0000 Subject: fixed a regression (patch from VMiklos ) --- lib/libalpm/alpm.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib/libalpm/alpm.c') diff --git a/lib/libalpm/alpm.c b/lib/libalpm/alpm.c index dddeaeff..70b1bb78 100644 --- a/lib/libalpm/alpm.c +++ b/lib/libalpm/alpm.c @@ -292,7 +292,6 @@ void *alpm_db_getinfo(PM_DB *db, unsigned char parm) int alpm_db_update(PM_DB *db, char *archive) { PMList *lp; - char path[PATH_MAX]; /* Sanity checks */ ASSERT(handle != NULL, RET_ERR(PM_ERR_HANDLE_NULL, -1)); @@ -323,9 +322,8 @@ int alpm_db_update(PM_DB *db, char *archive) /* ORE we should not simply unpack the archive, but better parse it and db_write each entry (see sync_load_dbarchive to get archive content) */ - snprintf(path, PATH_MAX, "%s/%s", db->path, db->treename); _alpm_log(PM_LOG_FLOW2, "unpacking %s", archive); - if(_alpm_unpack(archive, path, NULL)) { + if(_alpm_unpack(archive, db->path, NULL)) { RET_ERR(PM_ERR_SYSTEM, -1); } -- cgit v1.2.3-24-g4f1b