From 4819d21c74609de165361695427e89fbd796079d Mon Sep 17 00:00:00 2001 From: Aurelien Foret Date: Thu, 5 Jan 2006 19:37:54 +0000 Subject: terminated .lastupdate implementation for HTTP protocol --- lib/libalpm/alpm.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'lib/libalpm') 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); } } -- cgit v1.2.3-70-g09d2