[atlas] 01/03: Improve shell syntax in preinst scripts.
Sébastien Villemot
sebastien at debian.org
Thu Aug 4 14:34:21 UTC 2016
This is an automated email from the git hooks/post-receive script.
sebastien pushed a commit to branch master
in repository atlas.
commit 491d57ee9b65594c33edf9c2c911724bbad289ab
Author: Sébastien Villemot <sebastien at debian.org>
Date: Fri Jul 29 15:42:59 2016 +0200
Improve shell syntax in preinst scripts.
Closes: #805406
Thanks: Wolfgang Karall-Ahlborn
---
debian/libatlas-base-dev.preinst | 2 +-
debian/libatlas3-base.preinst | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/debian/libatlas-base-dev.preinst b/debian/libatlas-base-dev.preinst
index 2758f38..014dd61 100644
--- a/debian/libatlas-base-dev.preinst
+++ b/debian/libatlas-base-dev.preinst
@@ -4,7 +4,7 @@ set -e
# In 3.10.1-1, some symlinks were moved out of the alternatives system
# The following ensures that they are freed by the alternatives system before unpacking
-if [ $1 = "upgrade" -a `dpkg --compare-versions "$2" ge 3.8.4-4~exp1` -a `dpkg --compare-versions "$2" lt 3.10.1-1` ]
+if [ "$1" = "upgrade" ] && dpkg --compare-versions "$2" ge 3.8.4-4~exp1 && dpkg --compare-versions "$2" lt 3.10.1-1
then
update-alternatives --remove libblas.so /usr/lib/atlas-base/atlas/libblas.so
fi
diff --git a/debian/libatlas3-base.preinst b/debian/libatlas3-base.preinst
index bc05a2d..8a862e4 100644
--- a/debian/libatlas3-base.preinst
+++ b/debian/libatlas3-base.preinst
@@ -4,7 +4,7 @@ set -e
# In 3.10.1-1, some symlinks were moved out of the alternatives system
# The following ensures that they are freed by the alternatives system before unpacking
-if [ $1 = "upgrade" -a `dpkg --compare-versions "$2" ge 3.8.4-4~exp1` -a `dpkg --compare-versions "$2" lt 3.10.1-1` ]
+if [ "$1" = "upgrade" ] && dpkg --compare-versions "$2" ge 3.8.4-4~exp1 && dpkg --compare-versions "$2" lt 3.10.1-1
then
update-alternatives --remove libblas.so.3 /usr/lib/atlas-base/atlas/libblas.so.3
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