index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Aurelien Foret <aurelien@archlinux.org> | 2005-04-02 23:20:00 +0000 |
---|---|---|
committer | Aurelien Foret <aurelien@archlinux.org> | 2005-04-02 23:20:00 +0000 |
commit | 80bae750cd8ec44aa879b22fb1fdcc41036cbff6 (patch) | |
tree | 7d56a90647b760d90f8bd5976c049dd47648c495 /lib/libalpm/db.c | |
parent | a94c24c4067945e02f0afdd7f91cf74218b0142a (diff) |
-rw-r--r-- | lib/libalpm/db.c | 5 |
diff --git a/lib/libalpm/db.c b/lib/libalpm/db.c index 88126f4d..29547e20 100644 --- a/lib/libalpm/db.c +++ b/lib/libalpm/db.c @@ -60,6 +60,8 @@ pmdb_t *db_open(char *root, char *dbpath, char *treename) db->pkgcache = NULL; db->grpcache = NULL; + db_getlastupdate(db, db->lastupdate); + return(db); } @@ -152,6 +154,9 @@ int db_setlastupdate(pmdb_t *db, char *ts) return(-1); } fclose(fp); + + STRNCPY(db->lastupdate, ts, DB_UPDATE_LEN); + return(0); } |