PaganOS Luna 0.6.0
PL EN DE
← pag

Commit 46f9dc0

0
plików
+0
dodanych
-0
usuniętych
@@ -55,7 +55,7 @@ import threading, itertools
55 55 import uuid # serialNumber SBOM (CycloneDX)
56 56
57 57 # Wersja klienta – do porównania z repo.json["pag_version"] (self-update)
58 -PAG_VERSION = "4.0.5"
58 +PAG_VERSION = "4.0.6"
59 59 from urllib.error import URLError, HTTPError
60 60
61 61 # =============================================================================
@@ -5918,6 +5918,22 @@ def _verify_so_deps(to_install: list, repo: dict, installed: dict) -> int:
5918 5918 for n, info in installed.items():
5919 5919 provided.update(info.get("provides_so", []) or [])
5920 5920
5921 + # NAPRAWA: soname faktycznie obecne w systemie (ldconfig -p). Metadane
5922 + # starych paczek (zbudowanych przed polem provides_so) ich nie deklaruja,
5923 + # a biblioteki sa na dysku - bez tego fail-closed check blokuje legalne
5924 + # aktualizacje (np. mesa -> libLLVM.so.22.1).
5925 + try:
5926 + import shutil as _sh, subprocess as _sp
5927 + _ld = _sh.which("ldconfig")
5928 + if _ld:
5929 + _o = _sp.run([_ld, "-p"], capture_output=True, text=True).stdout
5930 + for _ln in _o.splitlines():
5931 + _ln = _ln.strip()
5932 + if "=>" in _ln:
5933 + provided.add(_ln.split("=>")[0].strip().split()[0])
5934 + except Exception:
5935 + pass
5936 +
5921 5937 missing = []
5922 5938 for n in sorted(to_install):
5923 5939 p = repo.get(n)