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

Unpacking rpm to dir gives me an interactive shell #1259

connection-reset opened this Issue Dec 16, 2016 · 2 comments


None yet
3 participants

connection-reset commented Dec 16, 2016

If I unpack rpm to dir I get an interactive shell for each script. I don't think thats right.

Command: fpm -s rpm -t dir MSM_linux_x64_installer-16.05.04-00/disk/MegaRAID_Storage_Manager-16.05.04-00.noarch.rpm


From: /home/axel/.gem/ruby/2.3.0/gems/fpm-1.7.0/lib/fpm/package/dir.rb @ line 112 FPM::Package::Dir#output:

     94: def output(output_path)
     95:   output_check(output_path)
     97:   output_path = File.expand_path(output_path)
     98:   ::Dir.chdir(staging_path) do
     99:     logger["method"] = "output"
    100:     clone(".", output_path)
    101:   end
    103:   # Write the scripts, too.
    104:   scripts_path = File.join(output_path, ".scripts")
    105:   ::Dir.mkdir(scripts_path)
    106:   [:before_install, :after_install, :before_remove, :after_remove].each do |name|
    107:     next unless script?(name)
    108:     out = File.join(scripts_path, name.to_s)
    109:     logger.debug("Writing script", :source => name, :target => out)
    110:     File.write(out, script(name))
    111:     require "pry"
 => 112:     binding.pry
    113:     File.chmod(0755, out)
    114:   end
    116: ensure
    117:   logger.remove("method")
    118: end # def output

[1] pry(#<FPM::Package::Dir>)>

This comment has been minimized.


jordansissel commented Dec 16, 2016


This comment has been minimized.


josephholsten commented Feb 20, 2017

josephholsten added a commit to josephholsten/fpm that referenced this issue Feb 20, 2017

jordansissel added a commit that referenced this issue Jun 15, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment