mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-22 21:43:03 -04:00
app-misc/hyfetch: new package, add 1.4.10, 9999
Signed-off-by: Bailey Kasin <baileykasin@gmail.com>
This commit is contained in:
15
app-misc/hyfetch/files/hyfetch-1.4.10-config_fix.patch
Normal file
15
app-misc/hyfetch/files/hyfetch-1.4.10-config_fix.patch
Normal file
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user