From 6ddbcfc932260ae382dac41ffbb9da05863ce2d9 Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Tue, 25 Jul 2017 16:01:29 +0000 Subject: [PATCH] projects.py: Assume build.libname = none for missing projects.conf projects.conf is only installed with devel packages. If no such thing is created or installed, depending packages assume that libname = packagename, which is wrong. This patch fixes that. Signed-off-by: Jan Lindemann --- scripts/projects.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/projects.py b/scripts/projects.py index d27bd221..fda75181 100644 --- a/scripts/projects.py +++ b/scripts/projects.py @@ -98,6 +98,10 @@ def read_value(path, section, key): try: file = open(path) except: + debug(path, "not found") + # TODO: handle this special case cleaner somewhere up the stack + if section == 'build' and key == 'libname': + return 'none' return None r = [] if not len(section):