mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-26 03:39:53 +01:00
Update the gsettings schema cache without a shell
This commit is contained in:
parent
af7f6c68d6
commit
09713f49e4
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user