| |
@@ -216,6 +216,7 @@
|
| |
patch: bool,
|
| |
patch_foreign: bool,
|
| |
vendor: bool,
|
| |
+ non_interactive: bool,
|
| |
) -> tuple[str, str, tuple[Optional[list[str]], Optional[list[str]]], Metadata, list[str], list[str], Optional[str]]:
|
| |
if os.path.isdir(project):
|
| |
toml_path, doc_files, license_files = local_cargo_dir(project)
|
| |
@@ -249,7 +250,7 @@
|
| |
version = package.version
|
| |
|
| |
with toml_temp_copy(toml_path):
|
| |
- diffs = make_patches(name, package.version, patch, patch_foreign, toml_path, features)
|
| |
+ diffs = make_patches(name, package.version, patch, patch_foreign, toml_path, features, non_interactive)
|
| |
|
| |
# ensure metadata is up-to-date with changes from patches
|
| |
metadata = Metadata.from_cargo(toml_path)
|
| |
@@ -299,6 +300,7 @@
|
| |
patch_foreign: bool,
|
| |
store_crate: bool,
|
| |
vendor: bool,
|
| |
+ non_interactive: bool,
|
| |
) -> tuple[
|
| |
str, str, tuple[Optional[list[str]], Optional[list[str]]], Metadata, list[str], list[str], bool, Optional[str]
|
| |
]:
|
| |
@@ -319,7 +321,7 @@
|
| |
log.warn("The '--store-crate' flag has no effect for unpacked sources.")
|
| |
|
| |
name, version, diffs, metadata, doc_files, license_files, vendor_tarball = process_project_local(
|
| |
- project, version, patch, patch_foreign, vendor
|
| |
+ project, version, patch, patch_foreign, vendor, non_interactive
|
| |
)
|
| |
return name, version, diffs, metadata, doc_files, license_files, True, vendor_tarball
|
| |
|
| |
@@ -354,7 +356,7 @@
|
| |
package = metadata.packages[0]
|
| |
version = package.version
|
| |
features = package.get_feature_names()
|
| |
- diffs = make_patches(name, version, patch, patch_foreign, toml_path, features)
|
| |
+ diffs = make_patches(name, version, patch, patch_foreign, toml_path, features, non_interactive)
|
| |
|
| |
# ensure metadata is up-to-date with changes from patches
|
| |
metadata = Metadata.from_cargo(toml_path)
|
| |
I hate this approach, but in order to get the
base_name
here, I need to refactor thest to a class so that I can have access to the variable more arbitrarily.