Delete 'options' section from config sections directly
This commit is contained in:
parent
e4d81eec2c
commit
9fea509235
@ -38,8 +38,8 @@ def list_configured_repos():
|
|||||||
parsed_config = parse_configfile(PACMAN_CONF)
|
parsed_config = parse_configfile(PACMAN_CONF)
|
||||||
|
|
||||||
repos = parsed_config.sections()
|
repos = parsed_config.sections()
|
||||||
# remove the 'option' entry from the list
|
# remove the 'options' entry from the list
|
||||||
del repos[0]
|
del repos[repos.index("options")]
|
||||||
|
|
||||||
repos.sort()
|
repos.sort()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user