[med-svn] [phyml] 01/01: Fix bug in wrapper script
Andreas Tille
tille at debian.org
Wed Feb 1 09:07:03 UTC 2017
This is an automated email from the git hooks/post-receive script.
tille pushed a commit to branch master
in repository phyml.
commit 2d559480b7efb50d3cc0b4dbe70208e2b6251658
Author: Andreas Tille <tille at debian.org>
Date: Wed Feb 1 09:37:46 2017 +0100
Fix bug in wrapper script
---
debian/changelog | 7 +++++++
debian/wrapper/phyml | 12 +++++++-----
2 files changed, 14 insertions(+), 5 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 2a79676..fcda675 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+phyml (3:3.2.0+dfsg-7) unstable; urgency=medium
+
+ * Fix bug in wrapper script which really
+ Closes: #853738
+
+ -- Andreas Tille <tille at debian.org> Wed, 01 Feb 2017 09:36:51 +0100
+
phyml (3:3.2.0+dfsg-6) unstable; urgency=medium
* Also provide version without beagle library since it causes trouble
diff --git a/debian/wrapper/phyml b/debian/wrapper/phyml
index 02b28ae..3d9a999 100755
--- a/debian/wrapper/phyml
+++ b/debian/wrapper/phyml
@@ -3,11 +3,13 @@
NPROCESSOR=`grep -c 'processor[[:space:]:]\+[0-9]\+' /proc/cpuinfo`
NCPUS=`grep '^cpu cores' /proc/cpuinfo | head -n 1 | sed 's/cpu cores[[:space:]:]\+//'`
-if [ $PHYMLCPUS -eq $PHYMLCPUS 2> /dev/null ] ; then
- if [ $PHYMLCPUS -gt 1 -a $NPROCESSOR -gt 1 ] ; then
- NCPUS=$PHYMLCPUS
- else
- NCPUS=1
+if [ "$PHYMLCPUS" != "" ] ; then
+ if [ $PHYMLCPUS -eq $PHYMLCPUS 2> /dev/null ] ; then
+ if [ $PHYMLCPUS -gt 1 -a $NPROCESSOR -gt 1 ] ; then
+ NCPUS=$PHYMLCPUS
+ else
+ NCPUS=1
+ fi
fi
fi
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/phyml.git
More information about the debian-med-commit
mailing list