|
|
@ -1,7 +1,7 @@
|
|
|
|
From 7ae809e1eaa826082c9f587f8741ea50f5246034 Mon Sep 17 00:00:00 2001
|
|
|
|
From 8cf4f5cb49ac3742c0c650f81875872ac3e09fbb Mon Sep 17 00:00:00 2001
|
|
|
|
From: Alex Schultz <aschultz@redhat.com>
|
|
|
|
From: Alex Schultz <aschultz@redhat.com>
|
|
|
|
Date: Wed, 3 Oct 2018 12:55:30 -0600
|
|
|
|
Date: Wed, 3 Oct 2018 12:55:30 -0600
|
|
|
|
Subject: [PATCH] (PUP-9198) Add RHEL8 support in the dnf provider
|
|
|
|
Subject: [PATCH 5/5] (PUP-9198) Add RHEL8 support in the dnf provider
|
|
|
|
|
|
|
|
|
|
|
|
dnf should be the default for RHEL8
|
|
|
|
dnf should be the default for RHEL8
|
|
|
|
---
|
|
|
|
---
|
|
|
@ -10,22 +10,22 @@ dnf should be the default for RHEL8
|
|
|
|
2 files changed, 16 insertions(+)
|
|
|
|
2 files changed, 16 insertions(+)
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/lib/puppet/provider/package/dnf.rb b/lib/puppet/provider/package/dnf.rb
|
|
|
|
diff --git a/lib/puppet/provider/package/dnf.rb b/lib/puppet/provider/package/dnf.rb
|
|
|
|
index 535aa6c6d7f..4823ebfd523 100644
|
|
|
|
index c0ed877..ee27322 100644
|
|
|
|
--- a/lib/puppet/provider/package/dnf.rb
|
|
|
|
--- a/lib/puppet/provider/package/dnf.rb
|
|
|
|
+++ b/lib/puppet/provider/package/dnf.rb
|
|
|
|
+++ b/lib/puppet/provider/package/dnf.rb
|
|
|
|
@@ -29,6 +29,7 @@
|
|
|
|
@@ -29,6 +29,7 @@ Puppet::Type.type(:package).provide :dnf, :parent => :yum do
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
defaultfor :operatingsystem => :fedora, :operatingsystemmajrelease => (22..30).to_a
|
|
|
|
defaultfor :operatingsystem => :fedora
|
|
|
|
+ defaultfor :osfamily => :redhat, :operatingsystemmajrelease => ["8"]
|
|
|
|
+ defaultfor :osfamily => :redhat, :operatingsystemmajrelease => ["8"]
|
|
|
|
|
|
|
|
|
|
|
|
def self.update_command
|
|
|
|
def self.update_command
|
|
|
|
# In DNF, update is deprecated for upgrade
|
|
|
|
# In DNF, update is deprecated for upgrade
|
|
|
|
diff --git a/spec/unit/provider/package/dnf_spec.rb b/spec/unit/provider/package/dnf_spec.rb
|
|
|
|
diff --git a/spec/unit/provider/package/dnf_spec.rb b/spec/unit/provider/package/dnf_spec.rb
|
|
|
|
index 5e57337f500..40345dcde6e 100644
|
|
|
|
index 5e57337..40345dc 100644
|
|
|
|
--- a/spec/unit/provider/package/dnf_spec.rb
|
|
|
|
--- a/spec/unit/provider/package/dnf_spec.rb
|
|
|
|
+++ b/spec/unit/provider/package/dnf_spec.rb
|
|
|
|
+++ b/spec/unit/provider/package/dnf_spec.rb
|
|
|
|
@@ -23,6 +23,21 @@
|
|
|
|
@@ -23,6 +23,21 @@ context 'default' do
|
|
|
|
expect(provider_class).to be_default
|
|
|
|
expect(provider_class).to be_default
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
@ -47,3 +47,6 @@ index 5e57337f500..40345dcde6e 100644
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
describe provider_class do
|
|
|
|
describe provider_class do
|
|
|
|
|
|
|
|
--
|
|
|
|
|
|
|
|
2.19.2
|
|
|
|
|
|
|
|
|