File: python2-script-but-no-python2-dep.tag

package info (click to toggle)
lintian 2.130.0
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 71,852 kB
  • sloc: perl: 46,140; javascript: 9,151; makefile: 4,071; sh: 3,044; ansic: 714; xml: 518; python: 91; java: 15; cpp: 9; tcl: 4; lisp: 3
file content (21 lines) | stat: -rw-r--r-- 1,007 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Tag: python2-script-but-no-python2-dep
Severity: error
Check: scripts
Explanation: Packages with Python2 scripts should depend on the package
 <code>python2</code>. Those with scripts that specify a specific version of
 Python2 must depend, recommend or suggest on that version of Python2
 (exactly).
 .
 For example, if a script in the package uses <code>#!/usr/bin/python2</code>,
 the package needs a dependency on <code>python2</code>. If a script uses
 <code>#!/usr/bin/python2.7</code>, the package needs a dependency on
 <code>python2.7</code>. A dependency on <code>python (>= 2.7)</code> is not
 correct, since later versions of Python2 may not provide the
 <code>/usr/bin/python2.7</code> binary.
 .
 If you are using debhelper, adding <code>${python2:Depends}</code> to the
 Depends field and ensuring dh&lowbar;python2 is run during the build should
 take care of adding the correct dependency.
 .
 In some cases a weaker relationship, such as Suggests or Recommends, will
 be more appropriate.