summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2018-05-30 00:45:12 +0200
committerAllan McRae <allan@archlinux.org>2018-06-04 13:32:43 +0200
commit930d50194754e9c75bc0d6d7ccc41ae8f4b4e5c4 (patch)
tree7988653775fe267bdba2deb0387fb6cf128caeb2 /src
parent716d776936a7c0559ef09a3b456fa52d2339a4aa (diff)
downloadpacman-930d50194754e9c75bc0d6d7ccc41ae8f4b4e5c4.tar.gz
pacman-930d50194754e9c75bc0d6d7ccc41ae8f4b4e5c4.tar.xz
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>
Diffstat (limited to 'src')
-rw-r--r--src/pacman/pacman-conf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pacman/pacman-conf.c b/src/pacman/pacman-conf.c
index aa0cdf22..baa72d97 100644
--- a/src/pacman/pacman-conf.c
+++ b/src/pacman/pacman-conf.c
@@ -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) {