new: add upstream-aware orig tarball origins and the orig-vendor component

This commit is contained in:
2026-09-17 01:31:35 +02:00
parent 8e06b2074d
commit 77420e723a
19 changed files with 3270 additions and 184 deletions
+9 -3
View File
@@ -54,12 +54,16 @@ impl OutputFile {
/// What the template post-write hook did to the freshly written tree,
/// threaded through [`super::scaffold`] so the flow can react (e.g. word
/// the post-scaffold verification offer differently when vendoring failed).
#[derive(Debug, Clone, Copy, Default)]
#[derive(Debug, Clone, Default)]
pub struct ScaffoldOutcome {
/// The vendoring step did not complete (host `cargo` missing, `cargo
/// vendor` failed, or the offline config could not be written): the
/// package will not build until the dependencies are vendored manually.
pub vendoring_failed: bool,
/// How the orig tarball was actually created (quilt only; `None` with
/// the native format, which has no orig tarball). Filled in by the
/// scaffold flow, not by the template hook.
pub orig_origin: Option<String>,
}
/// Metadata extracted from an existing project by [`Template::probe`], used
@@ -266,7 +270,8 @@ mod tests {
series: "resolute".into(),
release: false,
depends: Vec::new(),
native: false,
source_format: crate::new::options::SourceFormat::Quilt,
orig: None,
git: false,
autopkgtest: false,
pkg_config: false,
@@ -335,7 +340,8 @@ mod tests {
series: "resolute".into(),
release: false,
depends: Vec::new(),
native: false,
source_format: crate::new::options::SourceFormat::Quilt,
orig: None,
git: false,
autopkgtest: false,
pkg_config: false,