mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-06 04:53:27 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
35 lines
1.5 KiB
Diff
35 lines
1.5 KiB
Diff
diff --git a/guake/guake_app.py b/guake/guake_app.py
|
|
index 48074db..d7d1371 100644
|
|
--- a/guake/guake_app.py
|
|
+++ b/guake/guake_app.py
|
|
@@ -109,12 +109,7 @@ class Guake(SimpleGladeApp):
|
|
SCHEMA_DIR, Gio.SettingsSchemaSource.get_default(), False
|
|
)
|
|
|
|
- try:
|
|
- schema_source = load_schema()
|
|
- except GLib.Error: # pylint: disable=catching-non-exception
|
|
- log.exception("Unable to load the GLib schema, try to compile it")
|
|
- try_to_compile_glib_schemas()
|
|
- schema_source = load_schema()
|
|
+ schema_source = load_schema()
|
|
self.settings = Settings(schema_source)
|
|
self.accel_group = None
|
|
|
|
@@ -122,13 +117,8 @@ class Guake(SimpleGladeApp):
|
|
"schema-version" not in self.settings.general.keys()
|
|
or self.settings.general.get_string("schema-version") != guake_version()
|
|
):
|
|
- log.exception("Schema from old guake version detected, regenerating schema")
|
|
- try:
|
|
- try_to_compile_glib_schemas()
|
|
- except subprocess.CalledProcessError:
|
|
- log.exception("Schema in non user-editable location, attempting to continue")
|
|
- schema_source = load_schema()
|
|
- self.settings = Settings(schema_source)
|
|
+ log.exception("Schema from old guake version detected")
|
|
+ # Kept for compatibility with other distros.
|
|
self.settings.general.set_string("schema-version", guake_version())
|
|
|
|
log.info("Language previously loaded from: %s", LOCALE_DIR)
|