Skip to content

Commit

Permalink
Merge pull request #12389 from Mab879/fix_package_removed
Browse files Browse the repository at this point in the history
Don't autoremove packages on dnf package uninstall
  • Loading branch information
marcusburghardt authored Sep 18, 2024
2 parents a15b5b0 + fd61dc2 commit b2f8f74
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion shared/macros/10-bash.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,12 @@ if rpm -q --quiet "{{{ package }}}" ; then
{{% if SSG_TEST_SUITE_ENV %}}
rpm -e --nodeps "{{{ package }}}"
{{% else %}}
{{{ pkg_manager }}} remove -y "{{{ package }}}"
{{%- if pkg_manager == "dnf" -%}}
dnf remove -y --noautoremove "{{{ package }}}"
{{%- else -%}}
{{{ pkg_manager }}} remove -y "{{{ package }}}"
{{%- endif -%}}

{{% endif %}}
fi
{{%- elif pkg_manager == "apt_get" -%}}
Expand Down

0 comments on commit b2f8f74

Please sign in to comment.