index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2007-09-28 23:21:56 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-09-28 23:27:14 -0500 |
commit | 7d5dca4043b5f4ff94cd6033fccd4eadb3610a66 (patch) | |
tree | 7c7bb62787c474cf62e6ae6dec3905df67ac81e3 /lib/libalpm | |
parent | d5fa2da171c9f78e3b31053fe70b5ea24962a9c8 (diff) |
-rw-r--r-- | lib/libalpm/be_files.c | 4 |
diff --git a/lib/libalpm/be_files.c b/lib/libalpm/be_files.c index 06891ef5..2bfdb956 100644 --- a/lib/libalpm/be_files.c +++ b/lib/libalpm/be_files.c @@ -745,7 +745,7 @@ int _alpm_db_getlastupdate(const pmdb_t *db, char *ts) return(-1); } - snprintf(file, PATH_MAX, "%s%s.lastupdate", handle->root, db->path); + snprintf(file, PATH_MAX, "%s.lastupdate", db->path); /* get the last update time, if it's there */ if((fp = fopen(file, "r")) == NULL) { @@ -777,7 +777,7 @@ int _alpm_db_setlastupdate(const pmdb_t *db, char *ts) return(-1); } - snprintf(file, PATH_MAX, "%s%s.lastupdate", handle->root, db->path); + snprintf(file, PATH_MAX, "%s.lastupdate", db->path); if((fp = fopen(file, "w")) == NULL) { return(-1); |