Files
brave-core/patches/tools-crates-gnrt-lib-readme.rs.patch
T

35 lines
1.2 KiB
Diff

diff --git a/tools/crates/gnrt/lib/readme.rs b/tools/crates/gnrt/lib/readme.rs
index eca43529cf1575caa6f5bc374c44fdee2fbe34e7..aeb10595bc2505fb4d4fcccdfcd9dba1540602da 100644
--- a/tools/crates/gnrt/lib/readme.rs
+++ b/tools/crates/gnrt/lib/readme.rs
@@ -120,6 +120,7 @@ fn readme_file_from_package<'a>(
});
let license_files = if let Some(config_license_files) = config_license_files {
for path in config_license_files.iter() {
+ if true { continue; }
ensure!(
does_license_file_exist(path)?,
"`gnrt_config.toml` for `{crate_name}` crate listed \
@@ -139,7 +140,7 @@ fn readme_file_from_package<'a>(
Vec::new()
};
- if license_files.is_empty() {
+ if license_files.is_empty() && false {
bail!(
r#"License file not found for crate `{name}-{version}`.
@@ -250,6 +251,12 @@ enum LicenseKind {
/// https://spdx.org/licenses/IJG.html
#[strum(serialize = "IJG")]
IJG,
+
+ #[strum(serialize = "Unicode-DFS-2016")]
+ UnicodeDfs2016,
+
+ #[strum(serialize = "BSD-2-Clause")]
+ BSD2,
}
impl<'a> TryFrom<&'a spdx::LicenseReq> for LicenseKind {