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:
parent
716d776936
commit
930d501947
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue