virtcli: Explicitly error if schemas fail to compile

This commit is contained in:
Cole Robinson 2013-04-23 13:17:20 -04:00
parent c2aa6db6be
commit 974867189d
1 changed files with 3 additions and 1 deletions

View File

@ -51,7 +51,9 @@ def _setup_gsettings_path(schemadir):
import subprocess import subprocess
os.environ["GSETTINGS_SCHEMA_DIR"] = schemadir os.environ["GSETTINGS_SCHEMA_DIR"] = schemadir
subprocess.call(["glib-compile-schemas", schemadir]) ret = subprocess.call(["glib-compile-schemas", "--strict", schemadir])
if ret != 0:
raise RuntimeError("Failed to compile local gsettings schemas")
__version__ = "0.9.100" __version__ = "0.9.100"