From a54b11190d9041c1fd53a35f1d919e157e6ccdc9 Mon Sep 17 00:00:00 2001 From: Ewoud Kohl van Wijngaarden Date: Fri, 29 Aug 2025 10:55:25 +0200 Subject: [PATCH] Correct provides statement for Debian packaging In 83d06f38a68eb128e45ad1cf5fd2db35d56aec2f I tried to add a proper provides, but it turns out Vanagon completely ignores any version constraint. Once it does, it shouldn't need the braces around it. Then it's the same as RPM and the code can be simplified. Fixes: 83d06f38a68e ("Provide puppet-agent on RPM and Debian") --- configs/projects/openvox-agent.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/configs/projects/openvox-agent.rb b/configs/projects/openvox-agent.rb index b6c2d567a..a4a920390 100644 --- a/configs/projects/openvox-agent.rb +++ b/configs/projects/openvox-agent.rb @@ -160,11 +160,7 @@ # make sure we can replace puppet-agent in place for the rename proj.replaces 'puppet-agent', "< #{major.to_i + 1}" proj.conflicts 'puppet-agent' - if platform.is_rpm? - proj.provides 'puppet-agent', "= #{major}" - elsif platform.is_deb? - proj.provides 'puppet-agent', "(= #{major})" - end + proj.provides 'puppet-agent', "= #{major}" proj.timeout 7200 if platform.is_windows? end