Commit 930d5019 authored by Allan McRae's avatar Allan McRae
Browse files

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's avatarAllan McRae <>
parent 716d7769
......@@ -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) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment