From e9b568293663f80db574765d89ab631c915f6131 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 7 Nov 2013 08:43:10 +0100 Subject: Correcting file open modes in lb-init. --- components/init | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'components/init') diff --git a/components/init b/components/init index ca3fa8560..4d3699929 100755 --- a/components/init +++ b/components/init @@ -125,7 +125,7 @@ def main(): print('I: Downloading ' + url) r = urllib.request.urlopen(url) - f = open('config/archives/' + target[0] + '.key', 'b+w') + f = open('config/archives/' + target[0] + '.key', 'w') f.write(r.read()) @@ -147,7 +147,7 @@ def main(): # Configuring default package lists os.makedirs('config/package-lists', exist_ok=True) - f = open('config/package-lists/live.list.chroot', 'a') + f = open('config/package-lists/live.list.chroot', 'w') f.write('live-boot\nlive-config\nlive-config-sysvinit\n') f.close() -- cgit v1.2.3