index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Aurelien Foret <aurelien@archlinux.org> | 2006-03-02 19:06:52 +0000 |
---|---|---|
committer | Aurelien Foret <aurelien@archlinux.org> | 2006-03-02 19:06:52 +0000 |
commit | e2faeb46e108395f6efab06472ef9bb72e64431a (patch) | |
tree | 1567d106ecd2250611f55cbc04d809fdcf1ca87c /lib/libalpm/add.c | |
parent | 5261c7fafb142135d01458b083013580a9d035cc (diff) |
-rw-r--r-- | lib/libalpm/add.c | 10 |
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); } |