From 26652768d62e9acb63e600ed07e9841ec553a3d7 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Mon, 3 Jan 2011 18:31:37 -0600 Subject: Remove FORCE reading from local DB We never wrote it here, so no need to read it in either. Signed-off-by: Dan McGee --- lib/libalpm/be_local.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'lib/libalpm/be_local.c') diff --git a/lib/libalpm/be_local.c b/lib/libalpm/be_local.c index b2a50cc8..47c0caae 100644 --- a/lib/libalpm/be_local.c +++ b/lib/libalpm/be_local.c @@ -630,12 +630,6 @@ int _alpm_local_db_read(pmdb_t *db, pmpkg_t *info, pmdbinfrq_t inforeq) goto error; } info->epoch = atoi(_alpm_strtrim(line)); - } else if(strcmp(line, "%FORCE%") == 0) { - /* For backward compatibility, treat force as a non-zero epoch - * but only if we didn't already have a known epoch value. */ - if(!info->epoch) { - info->epoch = 1; - } } else if(strcmp(line, "%DEPENDS%") == 0) { while(fgets(line, sizeof(line), fp) && strlen(_alpm_strtrim(line))) { pmdepend_t *dep = _alpm_splitdep(_alpm_strtrim(line)); -- cgit v1.2.3-24-g4f1b