1dpkg-scansources(1) dpkg utilities dpkg-scansources(1)
2
3
4
6 dpkg-scansources - create Sources index files
7
9 dpkg-scansources [options] binary-dir [override-file [path-prefix]] >
10 Sources
11
13 dpkg-scansources scans the given binary-dir for .dsc files. These are
14 used to create a Debian source index, which is output to stdout.
15
16 The override-file, if given, is used to set priorities in the resulting
17 index records and to override the maintainer field given in the .dsc
18 files. The file can be compressed. See deb-override(5) for the format
19 of this file. NB: Since the override file is indexed by binary, not
20 source, packages, there's a bit of a problem here. The current imple‐
21 mentation uses the highest priority of all the binary packages produced
22 by a .dsc file for the priority of the source package, and the override
23 entry for the first binary package listed in the .dsc file to modify
24 maintainer information. This might change.
25
26 The path-prefix, if given, is prepended to the directory field in the
27 generated source index. You generally use this to make the directory
28 fields contain the path from the top of the Debian archive hierarchy.
29
30 Note: If you want to access the generated Sources file with apt(8) you
31 will probably need to compress the file with gzip(1) (generating a
32 Sources.gz file). apt ignores uncompressed Sources files except on
33 local access (i.e. file:// sources).
34
36 -n, --no-sort
37 Don't sort the index records. Normally they are sorted by source
38 package name.
39
40
41 -e, --extra-override file
42 Scan file to find supplementary overrides (the file can be
43 compressed). See deb-extra-override(5) for more information
44 on its format.
45
46 -s, --source-override file
47 Use file as the source override file (the file can be com‐
48 pressed). The default is the name of the override file you
49 specified with .src appended.
50
51 The source override file is in a different format from the
52 binary override file. It contains only two whitespace sepa‐
53 rated fields, the first is the source package name and the
54 second is the section. Blank lines and comment lines are
55 ignored in the normal manner. If a package appears in both
56 files the source override takes precedence for setting the
57 section.
58
59 --debug
60 Turn debugging on.
61
62 --help
63 Show the usage message and exit.
64
65 --version
66 Show the version and exit.
67
69 deb-override(5), deb-extra-override(5), dpkg-scanpackages(1).
70
72 Roderick Schertler <roderick@argon.org>
73
74
75
76Debian Project 2009-10-01 dpkg-scansources(1)