Hi,

this is the first time I'm creating a package for a
Python script so I'm not sure if this is a lintian
problem or my.

$ lintian epydoc_1.0-1_all.deb 
E: epydoc: python-script-but-no-python-dep 
./usr/lib/python2.1/site-packages/epydoc/cli.py
E: epydoc: python-script-but-no-python-dep 
./usr/lib/python2.1/site-packages/epydoc/gui.py
E: epydoc: python-script-but-no-python-dep ./usr/bin/epydoc
E: epydoc: python-script-but-no-python-dep ./usr/bin/epydocgui

I've here a Python script (epydoc v1.0) which only
works fine with python 2.1. I've set the right
dependencies and wonder that lintian does not recognised
the 'python2.1' dependency as python. 'python2' will
work but there is not python2- package anymore! Eatch
Python script within this package uses '#!/usr/bin/python2.1'.

So I've modified the /usr/share/lintian/checks/scripts
file a little bit to fit today's situation (lintian 1.21.2):

--- scripts     2002-10-16 00:00:00.000000000 +0200
+++ scripts.new 2002-10-19 21:17:03.000000000 +0200
@@ -64,7 +64,6 @@
                          'python2.1' => '/usr/bin/python2.1',
                          'python2.2' => '/usr/bin/python2.2',
                          'python2.3' => '/usr/bin/python2.3',
-                         'python2' => '/usr/bin/python2',
                          'rexx' => '/usr/bin/rexx',
                          'regina' => '/usr/bin/regina',
                          'rc' => '/usr/bin/rc',
@@ -232,9 +231,9 @@
            } elsif ($base eq 'python') {
                tag_error("python-script-but-no-python-dep", $filename)
                    unless ($deps{'python'} or $deps{'python-base'});
-           } elsif ($base =~ m/^python2(\.\d)*$/) {
+           } elsif ($base =~ m/^python\d+\.\d+$/) {
                tag_error("python-script-but-no-python-dep", $filename)
-                   unless ($deps{'python2'} or $deps{'python2-base'});
+                   unless ($deps{$base} or $deps{$base . '-base'});
             } elsif ($base eq 'pike') {
                 tag_error("pike-script-but-no-pike-dep", $filename)
                     unless ($deps{'pike'} or $deps{'pike7'});

If this is true I will report a bug agains lintian.

-- 
 .''`.   __   _                                            Raphael Bossek
: :' :  / /  (_)__  __ ____  __                        [EMAIL PROTECTED]
`. `'  / /__/ / _ \/ // /\ \/ /  (2.4.18)               http://www.s4l.de
  `-  /____/_/_//_/\_ _/ /_/\_\  Debian GNU/Linux 3.0       ICQ #40047651

      UNIX is user friendly, it's just picky about who its friends are


Reply via email to