Commit 837c5a680c54063b7113d078b1b5384f012c4c68
1 parent
a0ed6801
Exists in
master
and in
21 other branches
noosfero-plugins: fix dependency checking with bundler
Showing
1 changed file
with
4 additions
and
1 deletions
Show diff stats
script/noosfero-plugins
| @@ -98,9 +98,12 @@ _enable(){ | @@ -98,9 +98,12 @@ _enable(){ | ||
| 98 | dependencies_ok=true | 98 | dependencies_ok=true |
| 99 | dependencies_file="$source/dependencies.rb" | 99 | dependencies_file="$source/dependencies.rb" |
| 100 | if [ -e $source/Gemfile ]; then | 100 | if [ -e $source/Gemfile ]; then |
| 101 | - if ! (cd $source && bundle --local); then | 101 | + gemfile=$(mktemp --tmpdir=.) |
| 102 | + cat Gemfile $source/Gemfile > $gemfile | ||
| 103 | + if ! RUBYOPT='' BUNDLE_GEMFILE="$gemfile" bundle --local --quiet; then | ||
| 102 | dependencies_ok=false | 104 | dependencies_ok=false |
| 103 | fi | 105 | fi |
| 106 | + rm -f $gemfile $gemfile.lock | ||
| 104 | fi | 107 | fi |
| 105 | if ! run $dependencies_file; then | 108 | if ! run $dependencies_file; then |
| 106 | dependencies_ok=false | 109 | dependencies_ok=false |