1
0
mirror of https://github.com/moparisthebest/pacman synced 2025-01-10 21:38:19 -05:00

Retrieve default SigLevel value from backend after initial setting

This ensures we grab and use the library default once we have processed
the global SigLevel setting, but before processing the repo-specific
settings. This means the following two configs will now evaluate the
same, as the backend currently defaults to 'Optional':

Config 1:
    [options]
    # nothing here
    [repo]
    SigLevel = TrustAll

Config 2:
    [options]
    SigLevel = Optional
    [repo]
    SigLevel = TrustAll

Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Dan McGee 2011-08-23 01:05:02 -05:00
parent 6731d0a940
commit a8a4395098

View File

@ -563,6 +563,9 @@ static int setup_libalpm(void)
if(config->siglevel != ALPM_SIG_USE_DEFAULT) {
alpm_option_set_default_siglevel(handle, config->siglevel);
}
/* retrieve the set or default siglevel from the backend at this point;
* this way all future DB settings base their setting off this value */
config->siglevel = alpm_option_get_default_siglevel(handle);
if(config->xfercommand) {
alpm_option_set_fetchcb(handle, download_with_xfercommand);