How to configure the format used in FPM::Package::Deb.to_s?
Rylon opened this issue · 2 comments
Rylon commented
Hi,
I raised this on the FPM project too, but wondered if you had any insights related to doing this via a recipe:
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
bernd commented