Added some code to peer into a data structure in Maemian/Schedule.pm. Also added the
[maemian] / nokia-lintian / checks / version-substvars.desc
1 Check-Script: version-substvars
2 Author: Adeodato Simó <dato@net.com.org.es>
3 Abbrev: v-s
4 Type: source
5 Unpack-Level: 1
6 Needs-Info: debfiles, source-control-file
7 Info: This script checks for correct use of the various *Version
8  substvars, e.g. deprecated substvars, or usage that can cause
9  un-binNMUability
10
11 Tag: not-binnmuable-any-depends-any
12 Type: error
13 Info: The package is not safely binNMUable because an arch:any package
14  depends on another arch:any package with a (= ${source:Version})
15  relationship. Please use (= ${binary:Version}) instead.
16
17 Tag: not-binnmuable-any-depends-all
18 Type: warning
19 Info: The package is not safely binNMUable because an arch:any package
20  depends on an arch:all package with a (= ${Source-Version}) or
21  (= ${binary:Version}) relationship. Please use (= ${source:Version})
22  instead.
23
24 Tag: not-binnmuable-all-depends-any
25 Type: warning
26 Info: The package is not safely binNMUable because an arch:all package
27  depends on an arch:any package with a strict (= ${Source-Version}), or
28  similar, relationship.
29  .
30  It is not possible for arch:all packages to depend so strictly on
31  arch:any packages while having the package binNMUable, so please use
32  one of these, whichever is more appropriate:
33  .
34    Depends: arch_any (&gt;= ${source:Version})
35    Depends: arch_any (&gt;= ${source:Version}),
36     arch_any (&lt;&lt; ${source:Version}.1~)
37
38 Tag: version-substvar-for-external-package
39 Type: error
40 Info: The first package has a dependency on the second package that uses
41  (= ${binary:Version}), (= ${source:Version}), or (= ${Source-Version}),
42  but the second package is not built from this source package.  Usually
43  this means there is a mistake in the package name in this dependency.
44
45 Tag: substvar-source-version-is-deprecated
46 Type: warning
47 Info: The package uses the now deprecated ${Source-Version} substvar,
48  which has misleading semantics. Please switch to ${binary:Version} or
49  ${source:Version} as appropriate. Support for ${Source-Version} may be
50  removed from dpkg-dev in the future.