[atlas] 01/02: Rewrite logic in libatlas3-base.postinst. (Closes: #719142)

Sébastien Villemot sebastien at debian.org
Wed Jan 29 17:37:53 UTC 2014


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

sebastien pushed a commit to branch master
in repository atlas.

commit 45349bef094fd03a8c4384915c203f2a9597a4e6
Author: Sébastien Villemot <sebastien at debian.org>
Date:   Wed Jan 29 17:43:38 2014 +0100

    Rewrite logic in libatlas3-base.postinst. (Closes: #719142)
---
 debian/changelog               | 1 +
 debian/libatlas3-base.postinst | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index ad8303a..bcb6e73 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,7 @@ atlas (3.10.1-3) UNRELEASED; urgency=low
   * libatlas-base-dev now provides liblapack.so.
   * Remove unused libatlas-3.so, libatlas-3gf.so and libatlas.so.* virtual
     packages.
+  * Rewrite logic in libatlas3-base.postinst. (Closes: #719142)
 
  -- Sébastien Villemot <sebastien at debian.org>  Wed, 13 Nov 2013 18:06:57 +0100
 
diff --git a/debian/libatlas3-base.postinst b/debian/libatlas3-base.postinst
index 8370406..89dace1 100644
--- a/debian/libatlas3-base.postinst
+++ b/debian/libatlas3-base.postinst
@@ -19,7 +19,7 @@ update-alternatives --install /usr/lib/liblapack.so.3 liblapack.so.3 \
 # However, for an unknown reason, dpkg does not re-create the libatlas.so.3gf
 # symlink on upgrade. The following is a workaround for what seems to be a dpkg
 # bug.
-if [ $1 = "configure" -a -n "$2" -a `dpkg --compare-versions "$2" ge 3.8.4-4~exp1` -a `dpkg --compare-versions "$2" lt 3.10.1-1` ]
+if [ "$1" = "configure" ] && [ -n "$2" ] && dpkg --compare-versions "$2" ge 3.8.4-4~exp1 && dpkg --compare-versions "$2" lt 3.10.1-1
 then
     ln -sf atlas-base/libatlas.so.3 /usr/lib/libatlas.so.3gf
 fi

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/atlas.git



More information about the debian-science-commits mailing list