dpkg-scansources.1 2.4 KB

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