repo: resdb
action: commit
revision: 
path_from: 
revision_from: 97d218e7dfea5cced35fef8830b724bcd97f0bcf:
path_to: 
revision_to: 
git.thebackupbox.net
resdb
git clone git://git.thebackupbox.net/resdb
commit 97d218e7dfea5cced35fef8830b724bcd97f0bcf
Author: d3v11 
Date:   Sat Oct 8 15:38:32 2011 -0500

    contrib/splice3 changes made

diff --git a/contrib/splice3/CHANGES b/contrib/splice3/CHANGES
index c7f8087615cc5546c2a413be386d31177dbb710c..
index ..dffac6238eed6daa47503763857a464113f81d5d 100644
--- a/contrib/splice3/CHANGES
+++ b/contrib/splice3/CHANGES
@@ -68,3 +68,6 @@ CHANGES:
         d3v11 updated save/restore features for new
               newest modules. changed --se-create
               to function as a module.
+              
+              fixed setup-deb bug with dependency
+              checks.
diff --git a/contrib/splice3/setup-deb b/contrib/splice3/setup-deb
index c9e30469169e6097628775ac64087c18fb97a406..
index ..bf8dd01a05adf683d579762d5f36237da9baec4f 100755
--- a/contrib/splice3/setup-deb
+++ b/contrib/splice3/setup-deb
@@ -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 @@ else
  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

-----END OF PAGE-----