Skip to content

Commit

Permalink
fix(core: check_runtime_deps): don't check check for systemd version …
Browse files Browse the repository at this point in the history
…if DynamicUsers is turned off
  • Loading branch information
actionless committed Jun 7, 2024
1 parent 7429e36 commit 5dd4b94
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 @@ -355,7 +355,10 @@ def check_runtime_deps(dep_names: list[str] | None = None) -> None:
translate("pikaur requires Python >= 3.7 to run."),
)
sys.exit(65)
if UsingDynamicUsers()() and not check_systemd_dynamic_users_version():
if (
(PikaurConfig().build.DynamicUsers.get_str() != "never" and not parse_args().user_id)
and (UsingDynamicUsers()() and not check_systemd_dynamic_users_version())
):
print_error(
translate("pikaur requires systemd >= 235 (dynamic users) to be run as root."),
)
Expand Down

0 comments on commit 5dd4b94

Please sign in to comment.