From b05c3539147ae758299216461c6f7cb414c56f6d Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Fri, 5 Jun 2026 19:35:31 +0900 Subject: [PATCH] fix: make debian check non-mandatory --- dzgui/init/libgi.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/dzgui/init/libgi.py b/dzgui/init/libgi.py index 90041ad..4ebc660 100644 --- a/dzgui/init/libgi.py +++ b/dzgui/init/libgi.py @@ -2,10 +2,11 @@ import platform import sys from pathlib import Path +from warnings import deprecated LIB = "libgirepository-2.0" - +@deprecated("currently unused") def is_debian() -> bool: """ cf. @@ -33,8 +34,7 @@ def is_debian() -> bool: return True id_like = release["ID_LIKE"] return id_like in strings - except Exception as e: - print(e) + except Exception: return False @@ -45,7 +45,7 @@ def has_libgi() -> bool: def test_missing_lib() -> bool: - if is_debian() and has_libgi() is False: - # TODO: clean up warning - print(f"sudo apt install {LIB}") + msg = f"System is missing the required library '{LIB}'. Install it via your system package manager." + if has_libgi() is False: + print(msg) sys.exit(1)