Closed haf closed 10 years ago
I'm unable to reproduce that. Can you show me an example recipe which triggers the error? Thank you for the report!
===> Installing into /opt/fpm-recipes/clamz/tmp-dest
/opt/fpm-recipes/clamz/recipe.rb:24:in `install': undefined method `mkdir' for "foo":String (NoMethodError)
from /home/bernd/.rvm/gems/ruby-1.9.3-p484/gems/fpm-cookery-0.16.2/lib/fpm/cookery/packager.rb:122:in `block (2 levels) in dispense'
from /home/bernd/.rvm/gems/ruby-1.9.3-p484/gems/fpm-cookery-0.16.2/lib/fpm/cookery/packager.rb:104:in `chdir'
from /home/bernd/.rvm/gems/ruby-1.9.3-p484/gems/fpm-cookery-0.16.2/lib/fpm/cookery/packager.rb:104:in `block in dispense'
from /home/bernd/.rvm/gems/ruby-1.9.3-p484/gems/fpm-cookery-0.16.2/lib/fpm/cookery/packager.rb:101:in `chdir'
from /home/bernd/.rvm/gems/ruby-1.9.3-p484/gems/fpm-cookery-0.16.2/lib/fpm/cookery/packager.rb:101:in `dispense'
from /home/bernd/.rvm/gems/ruby-1.9.3-p484/gems/fpm-cookery-0.16.2/lib/fpm/cookery/cli.rb:104:in `exec'
from /home/bernd/.rvm/gems/ruby-1.9.3-p484/gems/fpm-cookery-0.16.2/lib/fpm/cookery/cli.rb:68:in `block in execute'
from /home/bernd/.rvm/gems/ruby-1.9.3-p484/gems/fpm-cookery-0.16.2/lib/fpm/cookery/book.rb:16:in `call'
from /home/bernd/.rvm/gems/ruby-1.9.3-p484/gems/fpm-cookery-0.16.2/lib/fpm/cookery/book.rb:16:in `load_recipe'
from /home/bernd/.rvm/gems/ruby-1.9.3-p484/gems/fpm-cookery-0.16.2/lib/fpm/cookery/cli.rb:64:in `execute'
from /home/bernd/.rvm/gems/ruby-1.9.3-p484/gems/clamp-0.6.3/lib/clamp/command.rb:67:in `run'
from /home/bernd/.rvm/gems/ruby-1.9.3-p484/gems/clamp-0.6.3/lib/clamp/subcommand/execution.rb:11:in `execute'
from /home/bernd/.rvm/gems/ruby-1.9.3-p484/gems/clamp-0.6.3/lib/clamp/command.rb:67:in `run'
from /home/bernd/.rvm/gems/ruby-1.9.3-p484/gems/clamp-0.6.3/lib/clamp/command.rb:125:in `run'
from /home/bernd/.rvm/gems/ruby-1.9.3-p484/gems/fpm-cookery-0.16.2/bin/fpm-cook:7:in `<top (required)>'
from /home/bernd/.rvm/gems/ruby-1.9.3-p484/bin/fpm-cook:23:in `load'
from /home/bernd/.rvm/gems/ruby-1.9.3-p484/bin/fpm-cook:23:in `<main>'
from /home/bernd/.rvm/gems/ruby-1.9.3-p484/bin/ruby_executable_hooks:15:in `eval'
from /home/bernd/.rvm/gems/ruby-1.9.3-p484/bin/ruby_executable_hooks:15:in `<main>'
$ echo $?
1
$
Scripts are here: https://github.com/haf/fpm-recipes
I will dig deeper into this to get more info.
The problem is that rake swallows the return code from the system
call and exits with 0.
Closing this. Please re-open or create a new issue if you still have problems with this. Thank you!
E.g.