Skip to content
Snippets Groups Projects
Commit bd643167 authored by Sjoerd Simons's avatar Sjoerd Simons
Browse files

Don't try to parse non-existing configuration file


Signed-off-by: default avatarSjoerd Simons <sjoerd.simons@collabora.co.uk>
Reviewed-by: default avatarGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Differential Revision: https://phabricator.apertis.org/D5246
parent ed049b16
No related branches found
No related tags found
No related merge requests found
...@@ -483,6 +483,8 @@ class SysrootManager: ...@@ -483,6 +483,8 @@ class SysrootManager:
def _get_url(self, version): def _get_url(self, version):
url = self.url url = self.url
if not url: if not url:
if not self.config:
raise SysrootManagerError("No URL given to retrieve {0} sysroot" .format(version.distro))
try: try:
parser = configparser.ConfigParser(interpolation=None) parser = configparser.ConfigParser(interpolation=None)
parser.read(self.config) parser.read(self.config)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment