[DRE-commits] [diaspora-installer] 01/03: truncate Gemfile.lock always

Praveen Arimbrathodiyil praveen at moszumanska.debian.org
Fri Apr 28 04:25:23 UTC 2017


This is an automated email from the git hooks/post-receive script.

praveen pushed a commit to branch master
in repository diaspora-installer.

commit f00ccf2f16c9282a20b27bc05e2d839164e63ff1
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date:   Fri Apr 28 09:52:15 2017 +0530

    truncate Gemfile.lock always
---
 debian/postinst | 1 +
 1 file changed, 1 insertion(+)

diff --git a/debian/postinst b/debian/postinst
index 4c3ac11..ef2774b 100755
--- a/debian/postinst
+++ b/debian/postinst
@@ -47,6 +47,7 @@ https://github.com/hyperic/sigar/issues/60 ..."
 
 	echo "Installing gems with rubygems ..."
 	su ${diaspora_user} -s /bin/sh -c "mkdir -p ~/vendor/bundle"
+	su ${diaspora_user} -s /bin/sh -c "touch ~/Gemfile.lock && truncate -s 0 ~/Gemfile.lock"
 	su ${diaspora_user} -s /bin/sh -c "bundle install --path vendor/bundle --with ${BUNDLE_WITH} --without development test"
         # Fix permissions (see #847286)
 	su ${diaspora_user} -s /bin/sh -c "find vendor/bundle -type f -exec chmod ga-w {} \;"

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/diaspora-installer.git



More information about the Pkg-ruby-extras-commits mailing list