Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error converting from rpm #316

Closed
dblacka opened this issue Dec 11, 2012 · 1 comment

Comments

@dblacka
Copy link

@dblacka dblacka commented Dec 11, 2012

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)

@jordansissel

This comment has been minimized.

Copy link
Owner

@jordansissel jordansissel commented Jan 2, 2013

Thanks to some prodding by @rtucker-mozilla, this is fixed.

Will show up in the next release!

prof-milki pushed a commit to prof-milki/xpm that referenced this issue Dec 18, 2014
  doesn't even record the "%dir" data, instead it just packages an empty
  directory into the cpio.

  fixes jordansissel#316, based on jordansissel#325 (patch by rtucker-mozilla)
prof-milki pushed a commit to prof-milki/xpm that referenced this issue Dec 27, 2014
  doesn't even record the "%dir" data, instead it just packages an empty
  directory into the cpio.

  fixes jordansissel#316, based on jordansissel#325 (patch by rtucker-mozilla)
jordansissel added a commit that referenced this issue Apr 24, 2015
  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)
jordansissel added a commit that referenced this issue Jun 20, 2016
  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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.