[DRE-commits] [diaspora-installer] 10/13: show debconf messages for migrations
Praveen Arimbrathodiyil
praveen at moszumanska.debian.org
Tue May 19 13:29:49 UTC 2015
This is an automated email from the git hooks/post-receive script.
praveen pushed a commit to branch 04x-05x_update
in repository diaspora-installer.
commit 182bf1d061b505e9b1f3c39cbad52be1e8297e14
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date: Tue May 19 18:55:36 2015 +0530
show debconf messages for migrations
---
debian/diaspora-common.postinst | 17 +++++++++++------
1 file changed, 11 insertions(+), 6 deletions(-)
diff --git a/debian/diaspora-common.postinst b/debian/diaspora-common.postinst
index bffe742..3f0cfb6 100755
--- a/debian/diaspora-common.postinst
+++ b/debian/diaspora-common.postinst
@@ -33,13 +33,18 @@ case "$1" in
# Check if there is another version installed
if ! test -z $2
then
- # Show current version of package
- installed_diaspora_version=`echo $2|cut -d+ -f1`
- installed_diaspora_minor_version=`echo ${installed_diaspora_version} |cut -d. -f3,4`
- diaspora_minor_version=`echo ${diaspora_version} |cut -d. -f3,4`
- if test $(echo "${installed_diaspora_minor_version} < ${diaspora_minor_version}" |bc) -eq 1
+ # Evaluate major and minor versions of diaspora
+ . /usr/lib/diaspora-common/scripts/diaspora-versions.sh
+ if test $(echo "${installed_diaspora_major_version} < 0.5" |bc) -eq 1
then
- echo "Trying update from ${installed_diaspora_version}..."
+ # Show debconf questions
+ . /usr/share/debconf/confmodule
+ echo "Be ready for long running database migrations..."
+ else
+ if test $(echo "${installed_diaspora_minor_version} < ${diaspora_minor_version}" |bc) -eq 1
+ then
+ echo "Trying update from ${installed_diaspora_version}..."
+ fi
fi
else
--
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