Skip to main content

Module deb_native

Module deb_native 

Source
Expand description

Native Debian plugin.

A .deb is a Unix ar archive whose members are debian-binary, control.tar[.gz|.xz|.zst|.bz2], and data.tar.*. The authoritative Package/Version/Architecture (plus Depends, Maintainer, Description, …) live in the control file inside the control tarball — NOT the filename. Parsing it (under the host-decompressors feature: tar for the inner tar, plus lgz/lbzip2/lzma-rs/ruzstd for the gz/bz2/xz/zst codecs) is what lets the read-side DebView surface real control metadata.

On any failure (off-feature, unknown codec, malformed) the plugin falls back to the {name}_{version}_{arch}.deb filename — never panics, always returns a row, exactly like the gem/conda native plugins.

Structs§

DebPlugin
Native deb plugin. name/version/arch + the raw control stanza come from the control tarball when the .deb is parseable, else (name, version, arch) from the filename (no control stanza).