mirror of
https://github.com/moparisthebest/pacman
synced 2024-08-13 17:03:46 -04:00
check assumeinstalled for meaningful mod
assumeinstalled options are used as provisions for which MOD_EQ and MOD_ANY are the only meaningful settings. Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
1ee2032b7f
commit
ccd3a3eb9f
@ -592,6 +592,8 @@ int SYMEXPORT alpm_option_remove_ignoregroup(alpm_handle_t *handle, const char *
|
||||
int SYMEXPORT alpm_option_add_assumeinstalled(alpm_handle_t *handle, const alpm_depend_t *dep)
|
||||
{
|
||||
CHECK_HANDLE(handle, return -1);
|
||||
ASSERT(dep->mod == ALPM_DEP_MOD_EQ || dep->mod == ALPM_DEP_MOD_ANY,
|
||||
RET_ERR(handle, ALPM_ERR_WRONG_ARGS, -1));
|
||||
|
||||
handle->assumeinstalled = alpm_list_add(handle->assumeinstalled, (void *)dep);
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user