Skip to content

Commit 362b966

Browse files
Rados13facebook-github-bot
authored andcommitted
Stop installing dnf4 packages on dnf5
Differential Revision: D70775799 fbshipit-source-id: bf441c7a2af874bd2ccdc0583f8567049b5769c7
1 parent 22f67cf commit 362b966

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cookbooks/fb_dnf/recipes/packages.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121
dnf_packages = %w{
2222
dnf
2323
dnf-data
24-
dnf-plugins-core
25-
dnf-utils
2624
libcomps
2725
libdnf
2826
libsolv
@@ -31,6 +29,10 @@
3129
python3-libcomps
3230
}
3331

32+
unless node.fedora? && node['platform_version'].to_i >= 41
33+
dnf_packages += %w{dnf-plugins-core dnf-utils}
34+
end
35+
3436
package dnf_packages do
3537
only_if { node['fb_dnf']['manage_packages'] }
3638
action :install

0 commit comments

Comments
 (0)