Skip to content

Commit

Permalink
fix(core: check_systemd_dynamic_users_version): use pyalpm instead of…
Browse files Browse the repository at this point in the history
… systemd --version (-2)
  • Loading branch information
actionless committed Jun 7, 2024
1 parent 63bad56 commit 239989d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pikaur/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,10 @@ def check_systemd_dynamic_users_version() -> bool: # pragma: no cover
# pylint: disable=import-outside-toplevel
from .pacman import PackageDB # noqa: PLC0415
from .version import split_version # noqa: PLC0415
version = int(split_version(PackageDB.get_local_pkg_uncached("systemd").version)[0])
pkg = PackageDB.get_local_pkg_uncached("systemd")
if not pkg:
return False
version = int(split_version(pkg.version)[0])
return version >= SYSTEMD_MIN_VERSION


Expand Down

0 comments on commit 239989d

Please sign in to comment.