Source: mmass
Version: 2.4.0-2
Severity: important
Tags: patch
User: debian-pyt...@lists.debian.org
Usertags: python2.6

Hello,

Your package currently depends on python2.4 | python2.5, while we believe that it works fine with newer python versions, too. It is possible that Python 2.5 will be removed soon, which would render your package uninstallable.

Please add XS-Python-Version header, fix Depends: so that Python dependency is computed automatically, and fix the start script accordingly.

--
Jakub Wilk
diff --git a/debian/control b/debian/control
--- a/debian/control
+++ b/debian/control
@@ -10,11 +10,12 @@
 Homepage: http://www.mmass.org/
 Vcs-Git: git://git.debian.org/git/debichem/packages/mmass.git
 Vcs-Browser: http://git.debian.org/?p=debichem/packages/mmass.git
+XS-Python-Version: >= 2.4
 
 
 Package: mmass
 Architecture: all
-Depends: python2.5 | python2.4, python-wxgtk2.6 (>= 2.6.3.2), python-numpy (>= 1.0.1)
+Depends: ${python:Depends}, python-wxgtk2.6 (>= 2.6.3.2), python-numpy (>= 1.0.1)
 Suggests: mmass-doc
 Description: Mass spectrometry tool for proteomics
  mMass is a free mass spectrum viewer/analyzer in which the
diff --git a/debian/start-script b/debian/start-script
--- a/debian/start-script
+++ b/debian/start-script
@@ -1,10 +1,4 @@
 #!/bin/sh
 
-if [ -x /usr/bin/python2.5 ]; then
-    PYTHON=/usr/bin/python2.5
-else
-    PYTHON=/usr/bin/python2.4
-fi
+exec python /usr/share/mmass/mmass.py
 
-exec ${PYTHON} /usr/share/mmass/mmass.py
-

Reply via email to