return "fetched", current_epoch, current_version
-def get_sudo_privileges():
+def get_sudo_privileges(other_state: dict[str, Any]):
"""Starts a bash loop that ensures sudo privileges are ready while this
script is active."""
atexit.register(build_print_pkg_info, pkgs, other_state)
- if not get_sudo_privileges():
+ if not get_sudo_privileges(other_state):
log_print(
"ERROR: Failed to get sudo privileges", other_state=other_state
)
os.path.dirname(os.path.realpath(other_state["chroot"])),
"tmpfs_chroot",
)
- get_sudo_privileges()
+ get_sudo_privileges(other_state)
try:
old_umask = os.umask(0o077)
log_print(