File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -214,6 +214,7 @@ def write_control_file
214214 section : section ,
215215 conflicts : project . conflicts ,
216216 replaces : project . replaces ,
217+ provides : project . provides ,
217218 dependencies : project . runtime_dependencies ,
218219 }
219220 )
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ module Omnibus
1010 project . build_version ( "1.2.3" )
1111 project . build_iteration ( "2" )
1212 project . maintainer ( "Chef Software" )
13+ project . provide ( "chefy-package" )
1314 project . license ( project_license ) if project_license
1415 end
1516 end
@@ -136,6 +137,7 @@ module Omnibus
136137 expect ( contents ) . to include ( "Vendor: Omnibus <omnibus@getchef.com>" )
137138 expect ( contents ) . to include ( "Architecture: amd64" )
138139 expect ( contents ) . to include ( "Maintainer: Chef Software" )
140+ expect ( contents ) . to include ( "Provides: chefy-package" )
139141 expect ( contents ) . to include ( "Installed-Size: 0" )
140142 expect ( contents ) . to include ( "Section: misc" )
141143 expect ( contents ) . to include ( "Priority: extra" )
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ module Omnibus
1111 project . build_iteration ( "2" )
1212 project . maintainer ( "Chef Software" )
1313 project . replace ( "old-project" )
14+ project . provide ( "chefy-package" )
1415 project . license ( project_license ) if project_license
1516 end
1617 end
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ module Omnibus
2828 it_behaves_like "a cleanroom setter" , :homepage , %{homepage 'https://getchef.com'}
2929 it_behaves_like "a cleanroom setter" , :description , %{description 'Installs the thing'}
3030 it_behaves_like "a cleanroom setter" , :replace , %{replace 'old-chef'}
31+ it_behaves_like "a cleanroom setter" , :provide , %{provide 'chefy-package'}
3132 it_behaves_like "a cleanroom setter" , :conflict , %{conflict 'puppet'}
3233 it_behaves_like "a cleanroom setter" , :build_version , %{build_version '1.2.3'}
3334 it_behaves_like "a cleanroom setter" , :build_iteration , %{build_iteration 1}
You can’t perform that action at this time.
0 commit comments