Package: python-schema-salad / 8.9.20250408123006-1

typescript_license Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: "Michael R. Crusoe" <crusoe@debian.org>
Date: Fri, 16 Jun 2023 12:26:33 -0400
Subject: Typescript codegen: Use local copy of the Apache 2.0 license
Forwarded: not-needed

During Debian packaging the extra LICENSE file gets deleted
---
 schema_salad/typescript_codegen.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- python-schema-salad.orig/schema_salad/typescript_codegen.py
+++ python-schema-salad/schema_salad/typescript_codegen.py
@@ -796,7 +796,7 @@
 
         expand_resource_template_to("package.json", self.target_dir / "package.json")
         expand_resource_template_to(".gitignore", self.target_dir / ".gitignore")
-        expand_resource_template_to("LICENSE", self.target_dir / "LICENSE")
+        shutil.copyfile("/usr/share/common-licenses/Apache-2.0", self.target_dir / "LICENSE")
         expand_resource_template_to("tsconfig.json", self.target_dir / "tsconfig.json")
         expand_resource_template_to("index.ts", self.main_src_dir / "index.ts")