With the latest version of fpm (0.4.25), converting from an RPM to some other format (I tried deb), fails with this error:
/usr/lib64/ruby/gems/1.9.1/gems/fpm-0.4.25/lib/fpm/package/rpm.rb:190:in `input': undefined method `directories' for #<RPM::File:0x00000000b05068> (NoMethodError)
from /usr/lib64/ruby/gems/1.9.1/gems/fpm-0.4.25/lib/fpm/command.rb:316:in `block in execute'
from /usr/lib64/ruby/gems/1.9.1/gems/fpm-0.4.25/lib/fpm/command.rb:315:in `each'
from /usr/lib64/ruby/gems/1.9.1/gems/fpm-0.4.25/lib/fpm/command.rb:315:in `execute'
from /usr/lib64/ruby/gems/1.9.1/gems/clamp-0.3.1/lib/clamp/command.rb:64:in `run'
from /usr/lib64/ruby/gems/1.9.1/gems/clamp-0.3.1/lib/clamp/command.rb:126:in `run'
from /usr/lib64/ruby/gems/1.9.1/gems/fpm-0.4.25/bin/fpm:8:in `<top (required)>'
from /usr/bin/fpm:19:in `load'
from /usr/bin/fpm:19:in `<main>'
This problem appears to have been introduced with pull request #260 (really SHA: a88cca4)
Bandaid fix for Issue #316. Without digging too deep into commmit a88…
- There is no RPM::File#directories method, plus it seems like rpm
doesn't even record the "%dir" data, instead it just packages an empty
directory into the cpio.
fixes #316, based on #325 (patch by rtucker-mozilla)
Thanks to some prodding by @rtucker-mozilla, this is fixed.
Will show up in the next release!