mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-10-12 08:12:33 +00:00
b2e76e61e3
After `apt-get remove`, dpkg reports a package as "deinstall ok config-files". uninstall_xcat_completely() selected packages with installed_packages(), which accepts only "install ok installed". So `go-xcat completely uninstall` after `go-xcat uninstall` did not purge the xCAT packages, and their configuration files stayed on the node. uninstall_xcat_completely() now uses purgeable_packages(). On Debian it also accepts packages whose state ends in "ok config-files". On rpm systems it is installed_packages(). uninstall_xcat() keeps the installed-only filter. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>