changeset 659:4714e2a4cc09 draft

contrib/splice3 changes made
author d3v11 <d3v11@d3v11.ano>
date Sat, 08 Oct 2011 15:38:32 -0500
parents bd1f56c22102
children 04346b25d789
files contrib/splice3/CHANGES contrib/splice3/setup-deb
diffstat 2 files changed, 15 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/splice3/CHANGES	Sat Oct 08 10:42:34 2011 -0500
+++ b/contrib/splice3/CHANGES	Sat Oct 08 15:38:32 2011 -0500
@@ -68,3 +68,6 @@
         d3v11 updated save/restore features for new
               newest modules. changed --se-create
               to function as a module.
+              
+              fixed setup-deb bug with dependency
+              checks.
--- a/contrib/splice3/setup-deb	Sat Oct 08 10:42:34 2011 -0500
+++ b/contrib/splice3/setup-deb	Sat Oct 08 15:38:32 2011 -0500
@@ -1,11 +1,4 @@
 #!/bin/bash
-echo 'checking for python2.7'
-if which python2.7 >/dev/null; then
- :
-else
- echo 'python2.7 not found. Quiting... :-('
- exit 1
-fi
 
 echo 'checking for man'
 if which man >/dev/null; then
@@ -23,6 +16,18 @@
  exit 1
 fi
 
+echo 'checking for python2.7'
+CheckPython=`dpkg --get-selections python2.7`
+if [[ $CheckPython == *deinstall* ]]; then
+ echo 'python2.7 not found. Quiting... :-('
+ exit 1
+elif [[ $CheckPython == '' ]]; then
+ echo 'python2.7 not found. Quiting... :-('
+ exit 1
+else
+ :
+fi
+
 echo 'configuring path to python2.7'
 PYPATH=`which python2.7`
 sed -e s^PYTHON^"$PYPATH"^g LINUX/splice3.py >LINUX/splice3.cp