From 837c5a680c54063b7113d078b1b5384f012c4c68 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Fri, 7 Nov 2014 17:28:53 -0200 Subject: [PATCH] noosfero-plugins: fix dependency checking with bundler --- script/noosfero-plugins | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/script/noosfero-plugins b/script/noosfero-plugins index 6e44a41..3f99698 100755 --- a/script/noosfero-plugins +++ b/script/noosfero-plugins @@ -98,9 +98,12 @@ _enable(){ dependencies_ok=true dependencies_file="$source/dependencies.rb" if [ -e $source/Gemfile ]; then - if ! (cd $source && bundle --local); then + gemfile=$(mktemp --tmpdir=.) + cat Gemfile $source/Gemfile > $gemfile + if ! RUBYOPT='' BUNDLE_GEMFILE="$gemfile" bundle --local --quiet; then dependencies_ok=false fi + rm -f $gemfile $gemfile.lock fi if ! run $dependencies_file; then dependencies_ok=false -- libgit2 0.21.2