summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-misc/hyfetch/files/hyfetch-1.4.10-config_fix.patch')
-rw-r--r--app-misc/hyfetch/files/hyfetch-1.4.10-config_fix.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/app-misc/hyfetch/files/hyfetch-1.4.10-config_fix.patch b/app-misc/hyfetch/files/hyfetch-1.4.10-config_fix.patch
new file mode 100644
index 000000000000..955eaf60ca30
--- /dev/null
+++ b/app-misc/hyfetch/files/hyfetch-1.4.10-config_fix.patch
@@ -0,0 +1,15 @@
+check_config uses the global constant CONFIG_PATH instead
+of the path that gets passed to it.
+
+--- a/hyfetch/main.py
++++ b/hyfetch/main.py
+@@ -27,7 +27,7 @@ def check_config(path) -> Config:
+ """
+ if path.is_file():
+ try:
+- return Config.from_dict(json.loads(CONFIG_PATH.read_text('utf-8')))
++ return Config.from_dict(json.loads(path.read_text('utf-8')))
+ except KeyError:
+ return create_config()
+
+