[elbe-devel] [PATCH 3/5] debianize: make filename for debian/copyright configurable

Torben Hohn torben.hohn at linutronix.de
Tue Oct 23 15:43:41 CEST 2018


uboot does not have a COPYING file. Allow to make the filename
depend on the debianizer, but default to 'COPYING'

Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
---
 elbepack/debianize/base.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/elbepack/debianize/base.py b/elbepack/debianize/base.py
index 06ef6796..788de741 100644
--- a/elbepack/debianize/base.py
+++ b/elbepack/debianize/base.py
@@ -23,6 +23,7 @@ class DebianizeBase (FormMultiPage):
     # pylint: disable=too-many-ancestors
 
     srctypes = {}
+    copyright_fname = 'COPYING'
 
     @classmethod
     def register(cls, srctype):
@@ -135,7 +136,7 @@ class DebianizeBase (FormMultiPage):
             mako = os.path.join(self.tmpl_dir, 'format.mako')
             f.write(template(mako, self.deb))
 
-        copyfile('COPYING', 'debian/copyright')
+        copyfile(self.copyright_fname, 'debian/copyright')
         with open('debian/compat', 'w') as f:
             f.write('9')
 
-- 
2.11.0




More information about the elbe-devel mailing list