Skip to content
This repository was archived by the owner on Sep 5, 2025. It is now read-only.

Commit 7b7b120

Browse files
committed
Provide puppet-agent on RPM
This allows users to perform `dnf install puppet-agent` and get openvox-agent instead. It also means packages don't need to modify their dependencies. They probably still should, but this helps users migrate. It also tightens the Obsoletes statement to include a version. rpmlint raises the unversioned-explicit-obsoletes warning on the old case. The Conflicts is kept unversioned, which is correct.
1 parent 9a58203 commit 7b7b120

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

configs/projects/openvox-agent.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,13 @@
174174
end
175175

176176
# make sure we can replace puppet-agent in place for the rename
177-
proj.replaces 'puppet-agent'
178177
proj.conflicts 'puppet-agent'
178+
if platform.is_rpm?
179+
proj.provides 'puppet-agent = %{version}-%{release}'
180+
proj.replaces 'puppet-agent < %{version}-%{release}'
181+
else
182+
proj.replaces 'puppet-agent'
183+
end
179184

180185
proj.timeout 7200 if platform.is_windows?
181186
end

0 commit comments

Comments
 (0)