dpkg-scansources.1 2.7 KB

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