From 633d2e75cdcc12103c080b3c93788c33fa5fd735 Mon Sep 17 00:00:00 2001
From: Tiago Freitas Pereira <tiagofrepereira@gmail.com>
Date: Tue, 15 Oct 2019 10:57:22 +0200
Subject: [PATCH] Added LICENSE.AGPL in the hack

---
 bob/devtools/bootstrap.py | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/bob/devtools/bootstrap.py b/bob/devtools/bootstrap.py
index bf072a28..c23ce51b 100644
--- a/bob/devtools/bootstrap.py
+++ b/bob/devtools/bootstrap.py
@@ -75,9 +75,14 @@ def do_hack(project_dir):
         copying_file = os.path.join(project_dir, 'COPYING')
         if(os.path.exists(copying_file)):
             shutil.copyfile(copying_file, os.path.join(recipe_dir,"COPYING"))
+            
+        agpl_file = os.path.join(project_dir, 'LICENSE.AGPL')
+        if(os.path.exists(agpl_file)):
+            shutil.copyfile(agpl_file, os.path.join(recipe_dir,"LICENSE.AGPL"))
+            
         meta_file = os.path.join(recipe_dir,"meta.yaml")
         recipe = open(meta_file).readlines()
-        recipe = [l.replace("../COPYING","COPYING").replace("../LICENSE","LICENSE") for l in recipe]
+        recipe = [l.replace("../COPYING","COPYING").replace("../LICENSE","LICENSE").replace("../LICENSE.AGPL","LICENSE.AGPL") for l in recipe]
         open(meta_file, "wt").write(''.join(recipe))
     #### END OF HACK
 
-- 
GitLab