[pacman-dev] [PATCH] Rework needs_transaction() and add new needs_root() function