debian/lib/python/debian_linux/gencontrol.py: Allow overriding output filenames
This commit is contained in:
parent
a25eb38372
commit
e120f06587
|
@ -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
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue