Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-01-03 18:31:37 -0600
committerDan McGee <dan@archlinux.org>2011-01-05 20:56:06 -0600
commit26652768d62e9acb63e600ed07e9841ec553a3d7 (patch)
tree739ae4b79531628216b4c2f7b419d4385a449fce
parent46eda12c1bdc13453446c49c021cbd7ee1e869d8 (diff)
Remove FORCE reading from local DB
We never wrote it here, so no need to read it in either. Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--lib/libalpm/be_local.c6
1 files changed, 0 insertions, 6 deletions
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));