From 3a06a9fa9fafe705bfb79c23dd75ca226b22026c Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Mon, 11 Oct 2010 17:48:11 -0500 Subject: Read 'force' entry from packages We weren't reading this in from our packages, thus causing us not to write it out to our local database. Adding this now will help ease the upgrade path for epoch later and not require reinstallation of all force packages. Signed-off-by: Dan McGee --- lib/libalpm/be_package.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib') diff --git a/lib/libalpm/be_package.c b/lib/libalpm/be_package.c index 38cf357a..ff266ae8 100644 --- a/lib/libalpm/be_package.c +++ b/lib/libalpm/be_package.c @@ -75,6 +75,8 @@ static int parse_descfile(struct archive *a, pmpkg_t *newpkg) STRDUP(newpkg->version, ptr, RET_ERR(PM_ERR_MEMORY, -1)); } else if(!strcmp(key, "pkgdesc")) { STRDUP(newpkg->desc, ptr, RET_ERR(PM_ERR_MEMORY, -1)); + } else if(!strcmp(key, "force")) { + newpkg->force = 1; } else if(!strcmp(key, "group")) { newpkg->groups = alpm_list_add(newpkg->groups, strdup(ptr)); } else if(!strcmp(key, "url")) { -- cgit v1.2.3-24-g4f1b