require_relative "../pgroonga-package-task"

class PostgreSQL10PGroongaPackageTask < VersionedPGroongaPackageTask
  def initialize
    super("10")
    @updating_debian_changelog = false
  end

  def enable_apt?
    @updating_debian_changelog
  end

  def update_debian_changelog
    @updating_debian_changelog = true
    begin
      super
    ensure
      @updating_debian_changelog = false
    end
  end

  def ubuntu_targets_default
    [
      ["bionic", "18.04"],
    ]
  end

  def yum_targets_default
    [
      "centos-7",
    ]
  end
end

task = PostgreSQL10PGroongaPackageTask.new
task.define
