Error recovery

This commit is contained in:
Alec Leamas 2010-10-27 13:27:40 +02:00
parent 7b14569571
commit 322faf3cc0

View file

@ -252,8 +252,8 @@ function make_bundle()
rm -rf $bundle_name
cd diaspora
rm Gemfile.lock
rm -rf .bundle
if [ "$BUNDLE_FIX" = 'yes' ]; then
rm -rf .bundle
bundle update
fi
@ -262,10 +262,12 @@ function make_bundle()
git checkout Gemfile
build_git_gems Gemfile vendor/git
sed -i 's|git://.*/|vendor/git/|g' Gemfile
rm -rf .bundle
# see: http://bugs.joindiaspora.com/issues/440
bundle install --path=vendor/bundle ||
bundle install --path=vendor/bundle
bundle install --path=vendor/bundle || {
rm -rf vendor/git/* .bundle
build_git_gems Gemfile vendor/git
bundle install --path=vendor/bundle
}
bundle package
mkdir -p "../$bundle_name/docs"