diff options
author | Lars Wirzenius <liw@liw.fi> | 2018-09-17 13:48:43 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2018-09-17 13:48:43 +0300 |
commit | fb03866bc3e70f3b736cfc6aa1a2759791fcdf47 (patch) | |
tree | 129fc069e96cf2a85c5af8f7075cdd7c921fa2c4 /ick2 | |
parent | d5a1f7b8c64f74f1f4daad1df8a5cffcc8819d61 (diff) | |
download | ick2-fb03866bc3e70f3b736cfc6aa1a2759791fcdf47.tar.gz |
Fix: how we write dput config file
Diffstat (limited to 'ick2')
-rw-r--r-- | ick2/actions.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ick2/actions.py b/ick2/actions.py index c302eef..c901d6b 100644 --- a/ick2/actions.py +++ b/ick2/actions.py @@ -611,8 +611,9 @@ class DputAction(Action): # pragma: no cover def create_dput_config_file(self, config): fd, filename = tempfile.mkstemp() - os.write(fd, config) os.close(fd) + with open(filename, "w") as f: + f.write(config) return filename def get_dput_config(self, apt_server): |