Krikri::PluginHelpers::DpkgDivertCommand
DpkgDivertCommand - builds the dpkg-divert command lines community.general.dpkg_divert runs, mirroring the MAINCOMMAND construction in the real module's main(). Pure string plumbing so the exact argv shapes are unit-testable without a dpkg database (or a Debian host at all); the plugin itself executes them.
Class methods
The one dpkg-divert invocation that adds/updates/removes the diversion. The real module probes --version for --no-rename support (dpkg >= 1.19.1, 2019) - treated as always-supported here, same reasoning as lvol's --yes shortcut: --no-rename is always passed explicitly unless --rename was asked for.
version_command
Source