Skip to content

Commit a14c059

Browse files
committed
(MODULES-10617) Add property module_hotfixes
Per https://dnf.readthedocs.io/en/latest/modularity.html#hotfix-repositories, if package you have rebuilt and put into your local repository belongs to a module, it will not be installed even with better version, because of the filtering by modules. To make the system use packages from a repository regardless of their modularity, specify module_hotfixes=true in the .repo file. This protects the repository from package filtering.
1 parent 34a1559 commit a14c059

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

REFERENCE.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,13 @@ Valid values: YUM_BOOLEAN, absent
130130
Whether yum will allow the use of package groups for this
131131
repository.
132132

133+
##### `module_hotfixes`
134+
135+
Valid values: YUM_BOOLEAN, absent
136+
137+
To make the system use packages from a repository regardless of
138+
their modularity, specify module_hotfixes=true in the .repo file.
139+
133140
##### `failovermethod`
134141

135142
Valid values: %r{^roundrobin|priority$}, absent

lib/puppet/type/yumrepo.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,15 @@
204204
munge(&munge_yum_bool)
205205
end
206206

207+
newproperty(:module_hotfixes) do
208+
desc "Whether packages from this repo can be installed into modules.
209+
#{YUM_BOOLEAN_DOC}
210+
#{ABSENT_DOC}"
211+
212+
newvalues(YUM_BOOLEAN, :absent)
213+
munge(&munge_yum_bool)
214+
end
215+
207216
newproperty(:failovermethod) do
208217
desc "The failover method for this repository; should be either
209218
`roundrobin` or `priority`. #{ABSENT_DOC}"

spec/unit/type/yumrepo_spec.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,11 @@
222222
it_behaves_like 'a yumrepo parameter that can be absent', :enablegroups
223223
end
224224

225+
describe 'module_hotfixes' do
226+
it_behaves_like 'a yumrepo parameter that expects a boolean parameter', :module_hotfixes
227+
it_behaves_like 'a yumrepo parameter that can be absent', :module_hotfixes
228+
end
229+
225230
describe 'failovermethod' do
226231
['roundrobin', 'priority'].each do |value|
227232
it "accepts a value of #{value}" do

0 commit comments

Comments
 (0)