Rename fetch-sources to fetch_sources in the tito.props config

Complements PR #407

Every other `tito.props` config option uses underscores instead of
dashes, so let's preserve this convention.
This commit is contained in:
Jakub Kadlcik 2021-06-22 23:42:41 +02:00 committed by Jakub Kadlčík
parent 5de167e0ff
commit 971c39b5ed

View file

@ -274,8 +274,8 @@ class BaseCliModule(object):
"offline"):
self.options.offline = True
if self.config.has_option(BUILDCONFIG_SECTION, "fetch-sources"):
self.options.fetch_sources = self.config.get(BUILDCONFIG_SECTION, "fetch-sources")
if self.config.has_option(BUILDCONFIG_SECTION, "fetch_sources"):
self.options.fetch_sources = self.config.get(BUILDCONFIG_SECTION, "fetch_sources")
# TODO: Not ideal:
if self.options.debug: