index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Aaron Griffin <aaron@archlinux.org> | 2007-03-04 09:08:54 +0000 |
---|---|---|
committer | Aaron Griffin <aaron@archlinux.org> | 2007-03-04 09:08:54 +0000 |
commit | cdb46ef3fa6d2bea95ae45b8b807497982b18fd5 (patch) | |
tree | 0f2340ed62be9f99f1e4bf0764c65aad1e701964 /lib/libalpm/be_files.c | |
parent | a7d7c963579176dfefe424931a57e86bc8b51924 (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 43d7a711..f8e73fbb 100644 --- a/lib/libalpm/be_files.c +++ b/lib/libalpm/be_files.c @@ -717,7 +717,7 @@ int _alpm_db_getlastupdate(pmdb_t *db, char *ts) return(-1); } - snprintf(file, PATH_MAX, "%s%s/%s/.lastupdate", handle->root, handle->dbpath, db->treename); + snprintf(file, PATH_MAX, "%s%s.lastupdate", handle->root, db->path); /* get the last update time, if it's there */ if((fp = fopen(file, "r")) == NULL) { @@ -749,7 +749,7 @@ int _alpm_db_setlastupdate(pmdb_t *db, char *ts) return(-1); } - snprintf(file, PATH_MAX, "%s%s/%s/.lastupdate", handle->root, handle->dbpath, db->treename); + snprintf(file, PATH_MAX, "%s%s.lastupdate", handle->root, db->path); if((fp = fopen(file, "w")) == NULL) { return(-1); |