From 9fea5092353f9392597316431427684e31bde684 Mon Sep 17 00:00:00 2001 From: Eric Torres Date: Sat, 30 Mar 2019 13:19:22 -0700 Subject: [PATCH] Delete 'options' section from config sections directly --- packaging_scripts/pacmanconf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packaging_scripts/pacmanconf.py b/packaging_scripts/pacmanconf.py index 7e0b710..674457f 100644 --- a/packaging_scripts/pacmanconf.py +++ b/packaging_scripts/pacmanconf.py @@ -38,8 +38,8 @@ def list_configured_repos(): parsed_config = parse_configfile(PACMAN_CONF) repos = parsed_config.sections() - # remove the 'option' entry from the list - del repos[0] + # remove the 'options' entry from the list + del repos[repos.index("options")] repos.sort()