new: add upstream-aware orig tarball origins and the orig-vendor component
This commit is contained in:
+29
-1
@@ -119,7 +119,29 @@ fn main() {
|
||||
.help("Target series (default: the development series of --dist)"),
|
||||
)
|
||||
.arg(arg!(--release "Write the --series into debian/changelog instead of UNRELEASED").required(false))
|
||||
.arg(arg!(--native "Use the 3.0 (native) source format (no orig tarball)").required(false))
|
||||
.arg(arg!(--native "Use the 3.0 (native) source format (default for a new project skeleton: no orig tarball)").required(false))
|
||||
.arg(
|
||||
clap::Arg::new("quilt")
|
||||
.long("quilt")
|
||||
.action(clap::ArgAction::SetTrue)
|
||||
.conflicts_with("native")
|
||||
.help("Use the 3.0 (quilt) source format with an orig tarball (default when packaging an existing project)"),
|
||||
)
|
||||
.arg(
|
||||
clap::Arg::new("orig_from")
|
||||
.long("orig-from")
|
||||
.value_name("MODE")
|
||||
.value_parser(["release", "git", "path", "snapshot"])
|
||||
.conflicts_with("native")
|
||||
.help("How to produce the orig tarball (quilt only): release (download the forge tarball of the tag; network), git (git archive of the tag), path (repack --orig-path), snapshot (tar the working tree). Default: git on a tag, snapshot otherwise"),
|
||||
)
|
||||
.arg(
|
||||
clap::Arg::new("orig_path")
|
||||
.long("orig-path")
|
||||
.value_name("FILE|URL")
|
||||
.conflicts_with("native")
|
||||
.help("Tarball used by --orig-from path: a local file or an http(s) URL (.tar, .tar.gz, .tgz, .tar.bz2, .tbz2, .tar.xz), repacked to the orig"),
|
||||
)
|
||||
.arg(
|
||||
clap::Arg::new("no_git")
|
||||
.long("no-git")
|
||||
@@ -273,6 +295,12 @@ fn main() {
|
||||
.get_one::<bool>("native")
|
||||
.copied()
|
||||
.unwrap_or(false),
|
||||
quilt: sub_matches
|
||||
.get_one::<bool>("quilt")
|
||||
.copied()
|
||||
.unwrap_or(false),
|
||||
orig_from: sub_matches.get_one::<String>("orig_from").cloned(),
|
||||
orig_path: sub_matches.get_one::<String>("orig_path").cloned(),
|
||||
git: !sub_matches
|
||||
.get_one::<bool>("no_git")
|
||||
.copied()
|
||||
|
||||
Reference in New Issue
Block a user