pacman-conf: fix detection of repo usage

pacman-conf returned All for any repo Usage query because it was
checking if any repo options were enabled rather than if all options
were enabled.

Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Allan McRae 2018-05-30 08:45:12 +10:00
parent 716d776936
commit 930d501947

View file

@ -212,9 +212,9 @@ static void show_siglevel(const char *directive, alpm_siglevel_t level, int pkgo
}
}
static void show_usage(const char *directive, alpm_db_usage_t usage)
static void show_usage(const char *directive, int usage)
{
if(usage & ALPM_DB_USAGE_ALL) {
if(usage == ALPM_DB_USAGE_ALL) {
show_str(directive, "All");
} else {
if(usage & ALPM_DB_USAGE_SYNC) {