summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2013-11-07 08:43:10 +0100
committerDaniel Baumann <mail@daniel-baumann.ch>2013-11-07 08:43:33 +0100
commite9b568293663f80db574765d89ab631c915f6131 (patch)
treefa1f0b3fae16957adeaa9ea9e8ef7b8181386570
parentd28d053e8c57ee589106e3c781bf8f16b67fcb54 (diff)
downloadvyos-live-build-e9b568293663f80db574765d89ab631c915f6131.tar.gz
vyos-live-build-e9b568293663f80db574765d89ab631c915f6131.zip
Correcting file open modes in lb-init.
-rwxr-xr-xcomponents/init4
1 files changed, 2 insertions, 2 deletions
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()