mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-23 08:18:51 -05:00
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 <dan@archlinux.org>
This commit is contained in:
parent
283ef6519a
commit
3a06a9fa9f
@ -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")) {
|
||||
|
Loading…
Reference in New Issue
Block a user