Category debian:suite
This collection represents a single suite in a Debian
archive. Its name
is the name of the suite.
Variables when adding items:
component
: the component (e.g.main
ornon-free
) in which this package is publishedsection
: the section (e.g.python
) for this packagepriority
: for binary packages, the priority (e.g.optional
) for this package
Data:
components
: the components that exist in this suite (must be set in order to be able to generate indexes)architectures
: the architectures that exist in this suite (must be set in order to be able to generate indexes)release_fields
: dictionary of static fields to set in this suite’sRelease
filemay_reuse_versions
: if true, versions of packages in this suite may be reused provided that the previous packages with that version have been removed; this should be false for typical user-facing suites to avoid confusing behaviour from apt, but it may be useful to set it to true for experimental suitesduplicate_architecture_all
: if true, includeArchitecture: all
packages in architecture-specificPackages
indexes, and set No-Support-for-Architecture-all: Packages in theRelease
file; this may improve compatibility with older client code
Valid items:
debian:source-package
artifacts (see Category debian:source-package)debian:binary-package
artifacts (see Category debian:binary-package)debian:repository-index
artifacts (see Category debian:repository-index)
Per-item data:
srcpkg_name
: for binary packages, the name of the corresponding source package (copied from underlying artifact for ease of lookup and to preserve history)srcpkg_version
: for binary packages, the version of the corresponding source package (copied from underlying artifact for ease of lookup and to preserve history)package
: the name from the package’sPackage:
field (copied from underlying artifact for ease of lookup and to preserve history)version
: the version of the package (copied from underlying artifact for ease of lookup and to preserve history)architecture
: for binary packages, the architecture of the package (copied from underlying artifact for ease of lookup and to preserve history)component
: the component (e.g.main
ornon-free
) in which this package is publishedsection
: the section (e.g.python
) for this packagepriority
: for binary packages, the priority (e.g.optional
) for this packagepath
: for index files, the path of the file relative to the root of the suite’s directory indists
(e.g.InRelease
ormain/source/Sources.xz
)
Lookup names:
source:NAME
: the current version of the source package namedNAME
.source-version:NAME_VERSION
: the source package namedNAME
atVERSION
.binary:NAME_ARCHITECTURE
the current version of the binary package namedNAME
onARCHITECTURE
(also includingArchitecture: all
binary packages ifARCHITECTURE
is notall
).binary-version:NAME_VERSION_ARCHITECTURE
the binary package namedNAME
atVERSION
onARCHITECTURE
(also includingArchitecture: all
binary packages ifARCHITECTURE
is notall
).index:PATH
: the current index file atPATH
relative to the root of the suite’s directory indists
Constraints:
there may be at most one package with a given name and version (and architecture, in the case of binary packages) active in the collection at a given time
each poolified file name resulting from an active artifact may only refer to at most one concrete file in the collection at a given time (this differs from the above constraint in the case of source packages, which contain multiple files that may overlap with other source packages)
if
may_reuse_versions
is false, then each poolified file name in the collection may only refer to at most one concrete file, regardless of whether conflicting files are active or removed
To support race-free mirroring, repository index files are served via by-hash paths in addition to their base path. These paths are handled implicitly by the code that serves repositories, and are not recorded using separate collection items.