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 <jan@janware.com>
This commit is contained in:
Jan Lindemann 2017-07-25 16:01:29 +00:00
commit 6ddbcfc932

View file

@ -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):