From: Paul Norman Date: Wed, 4 Sep 2024 01:21:21 +0000 (-0700) Subject: Use backports for osm2pgsql on debian X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/c34d99aba3f7adb752462a83e46829733d73cc61 Use backports for osm2pgsql on debian --- diff --git a/cookbooks/tile/recipes/default.rb b/cookbooks/tile/recipes/default.rb index 2ebcbf041..4f067ee68 100644 --- a/cookbooks/tile/recipes/default.rb +++ b/cookbooks/tile/recipes/default.rb @@ -505,6 +505,13 @@ directory "/var/log/tile" do mode "755" end +if platform?("debian") + apt_preference "osm2pgsql" do + pin "release o=Debian Backports" + pin_priority "600" + end +end + package %w[ osm2pgsql osmium-tool diff --git a/test/integration/tile/inspec/osm2pgsql_spec.rb b/test/integration/tile/inspec/osm2pgsql_spec.rb new file mode 100644 index 000000000..e5efe3340 --- /dev/null +++ b/test/integration/tile/inspec/osm2pgsql_spec.rb @@ -0,0 +1,4 @@ +describe package("osm2pgsql") do + it { should be_installed } + its("version") { should cmp >= "1.11.0" } +end