debian/lib/python/debian_linux/gencontrol.py: Allow overriding output filenames

This commit is contained in:
Ben Hutchings 2018-04-06 10:14:34 +02:00
parent a25eb38372
commit e120f06587
2 changed files with 6 additions and 4 deletions

2
debian/changelog vendored
View File

@ -44,6 +44,8 @@ linux (4.16-1~exp1) UNRELEASED; urgency=medium
[ Ben Hutchings ]
* Set ABI name to trunk
* debian/config: Rename [build]signed-modules setting to signed-code
* debian/lib/python/debian_linux/gencontrol.py: Allow overriding output
filenames
-- Roger Shimizu <rogershimizu@gmail.com> Fri, 23 Mar 2018 21:10:34 +0900

View File

@ -321,11 +321,11 @@ class Gencontrol(object):
self.config.write(f)
f.close()
def write_control(self, list):
self.write_rfc822(codecs.open("debian/control", 'w', 'utf-8'), list)
def write_control(self, list, name='debian/control'):
self.write_rfc822(codecs.open(name, 'w', 'utf-8'), list)
def write_makefile(self, makefile):
f = open("debian/rules.gen", 'w')
def write_makefile(self, makefile, name='debian/rules.gen'):
f = open(name, 'w')
makefile.write(f)
f.close()