Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/alpm.c
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2006-01-05 19:37:54 +0000
committerAurelien Foret <aurelien@archlinux.org>2006-01-05 19:37:54 +0000
commit4819d21c74609de165361695427e89fbd796079d (patch)
treebf7c62893fbdb8b042ed7be4aa616451829288d8 /lib/libalpm/alpm.c
parent9d55476c9c5f94876de2a0c338e1f550e24fe977 (diff)
terminated .lastupdate implementation for HTTP protocol
Diffstat (limited to 'lib/libalpm/alpm.c')
-rw-r--r--lib/libalpm/alpm.c7
1 files changed, 2 insertions, 5 deletions
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);
}
}