summaryrefslogtreecommitdiff
path: root/lib/libalpm/add.c
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2006-03-02 19:06:52 +0000
committerAurelien Foret <aurelien@archlinux.org>2006-03-02 19:06:52 +0000
commite2faeb46e108395f6efab06472ef9bb72e64431a (patch)
tree1567d106ecd2250611f55cbc04d809fdcf1ca87c /lib/libalpm/add.c
parent5261c7fafb142135d01458b083013580a9d035cc (diff)
downloadpacman-e2faeb46e108395f6efab06472ef9bb72e64431a.tar.xz
reworked the db object to prepare future integration with different backends
Diffstat (limited to 'lib/libalpm/add.c')
-rw-r--r--lib/libalpm/add.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/libalpm/add.c b/lib/libalpm/add.c
index e3c5174c..2cd88bc6 100644
--- a/lib/libalpm/add.c
+++ b/lib/libalpm/add.c
@@ -25,9 +25,7 @@
#include <time.h>
#include <fcntl.h>
#include <string.h>
-#ifdef CYGWIN
-#include <limits.h> /* PATH_MAX */
-#endif
+#include <limits.h>
#include <zlib.h>
#include <libtar.h>
/* pacman */
@@ -314,10 +312,8 @@ int _alpm_add_commit(pmtrans_t *trans, pmdb_t *db)
oldpkg = _alpm_pkg_new(local->name, local->version);
if(oldpkg) {
if(!(local->infolevel & INFRQ_FILES)) {
- char name[PKG_FULLNAME_LEN];
- snprintf(name, PKG_FULLNAME_LEN, "%s-%s", local->name, local->version);
- _alpm_log(PM_LOG_DEBUG, "loading FILES info for %s", local->name);
- _alpm_db_read(db, name, INFRQ_FILES, local);
+ _alpm_log(PM_LOG_DEBUG, "loading FILES info for '%s'", local->name);
+ _alpm_db_read(db, INFRQ_FILES, local);
}
oldpkg->backup = _alpm_list_strdup(local->backup);
}