diff options
Diffstat (limited to 'gnome-extra/gnome-tweak-tool/files/gnome-tweak-tool-3.2.2-missing-schemas-error.patch')
-rw-r--r-- | gnome-extra/gnome-tweak-tool/files/gnome-tweak-tool-3.2.2-missing-schemas-error.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/gnome-extra/gnome-tweak-tool/files/gnome-tweak-tool-3.2.2-missing-schemas-error.patch b/gnome-extra/gnome-tweak-tool/files/gnome-tweak-tool-3.2.2-missing-schemas-error.patch new file mode 100644 index 000000000000..03bd049e4971 --- /dev/null +++ b/gnome-extra/gnome-tweak-tool/files/gnome-tweak-tool-3.2.2-missing-schemas-error.patch @@ -0,0 +1,27 @@ +From 96ca58e9034c0a4ae6d84ca53e37bc1d50ec0923 Mon Sep 17 00:00:00 2001 +From: John Stowers <john.stowers@gmail.com> +Date: Thu, 24 Nov 2011 09:55:38 +1300 +Subject: [PATCH] Print more useful error for missing schemas + +--- + gtweak/gsettings.py | 4 +++- + 1 files changed, 3 insertions(+), 1 deletions(-) + +diff --git a/gtweak/gsettings.py b/gtweak/gsettings.py +index ca7020f..9ab8749 100644 +--- a/gtweak/gsettings.py ++++ b/gtweak/gsettings.py +@@ -31,7 +31,9 @@ class _GSettingsSchema: + schema_filename = schema_name + ".gschema.xml" + + schema_path = os.path.join(schema_dir, schema_filename) +- assert(os.path.exists(schema_path)) ++ if not os.path.exists(schema_path): ++ logging.critical("Could not find schema %s" % schema_path) ++ assert(False) + + self._schema_name = schema_name + self._schema = {} +-- +1.7.8.3 + |