Update the gsettings schema cache without a shell

This commit is contained in:
Thomas Nagy 2016-12-20 14:01:17 +01:00
parent af7f6c68d6
commit 09713f49e4
1 changed files with 5 additions and 3 deletions

View File

@ -301,15 +301,17 @@ def process_settings(self):
# 3. schemas install task
def compile_schemas_callback(bld):
if not bld.is_install: return
Logs.pprint ('YELLOW','Updating GSettings schema cache')
if not bld.is_install:
return
env = bld.env
destdir = Options.options.destdir
if destdir:
path = os.path.join(destdir, env.GSETTINGSSCHEMADIR.lstrip(os.sep))
else:
path = env.GSETTINGSSCHEMADIR
self.bld.exec_command("%s %s" % (env.get_flat('GLIB_COMPILE_SCHEMAS'), path))
Logs.pprint('YELLOW', 'Updating GSettings schema cache %r' % path)
command = Utils.to_list(env.GLIB_COMPILE_SCHEMAS) + [path]
self.bld.exec_command(command)
if self.bld.is_install:
if not self.env.GSETTINGSSCHEMADIR: