index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Aurelien Foret <aurelien@archlinux.org> | 2006-01-05 19:37:54 +0000 |
---|---|---|
committer | Aurelien Foret <aurelien@archlinux.org> | 2006-01-05 19:37:54 +0000 |
commit | 4819d21c74609de165361695427e89fbd796079d (patch) | |
tree | bf7c62893fbdb8b042ed7be4aa616451829288d8 /lib/libalpm/alpm.c | |
parent | 9d55476c9c5f94876de2a0c338e1f550e24fe977 (diff) |
-rw-r--r-- | lib/libalpm/alpm.c | 7 |
diff --git a/lib/libalpm/alpm.c b/lib/libalpm/alpm.c index 6c005ba1..833737f4 100644 --- a/lib/libalpm/alpm.c +++ b/lib/libalpm/alpm.c @@ -279,11 +279,8 @@ int alpm_db_update(PM_DB *db, char *archive, char *ts) } if(ts && strlen(ts) != 0) { - char lastupdate[15]; - if(db_getlastupdate(db, lastupdate) != -1) { - if(strcmp(ts, lastupdate) == 0) { - RET_ERR(PM_ERR_DB_UPTODATE, -1); - } + if(strcmp(ts, db->lastupdate) == 0) { + RET_ERR(PM_ERR_DB_UPTODATE, -1); } } |