Skip to content

How to configure the format used in FPM::Package::Deb.to_s? #210

Description

@Rylon

Hi,

I raised this on the FPM project too, but wondered if you had any insights related to doing this via a recipe:

jordansissel/fpm#1659

We want to make sure the Epoch gets included in the filename, we can see that FPM::Package::Deb.to_s is responsible for interpolating the filename, but it defaults to this:
"NAME_FULLVERSION_ARCH.EXTENSION"

We'd like to change it to match the Debian packaging spec:
"NAME_EPOCH:FULLVERSION_ARCH.EXTENSION".

Is it possible to set this properly via some mechanism?

For the time being we've monkey patched inside our recipe.rb:

# Monkey patches to override default format to contain the Epoch according to Debian Packaging Specs.
class FPM::Package::Deb < FPM::Package
  def to_s(format=nil)
    return super("NAME_EPOCH:FULLVERSION_ARCH.EXTENSION")
  end
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions