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(-)

diff --git a/schema_salad/typescript_codegen.py b/schema_salad/typescript_codegen.py
index 5085599..3fc53c5 100644
--- a/schema_salad/typescript_codegen.py
+++ b/schema_salad/typescript_codegen.py
@@ -796,7 +796,7 @@ export enum {enum_name} {{
 
         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")
 
