Ensure same config file is not loaded multiple times

pull/2075/head
pukkandan 2021-11-30 21:32:29 +05:30
rodzic 1bad50eced
commit 2aa5e2cc01
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 0F00D95A001F4698
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -1619,6 +1619,9 @@ def parseOpts(overrideArguments=None):
current_path = os.path.join(path, '%s.conf' % package)
config = _readOptions(current_path, default=None)
if config is not None:
current_path = os.path.realpath(current_path)
if current_path in paths.values():
return False
configs[name], paths[name] = config, current_path
return parser.parse_args(config)[0].ignoreconfig
return False