Ansgar pushed to branch master at Debian FTP Team / dak
Commits:
2 changed files:
Changes:
... | ... | @@ -202,7 +202,7 @@ def index_range(index): |
202 | 202 |
|
203 | 203 |
|
204 | 204 |
def edit_new(overrides, upload, session):
|
205 |
- with tempfile.NamedTemporaryFile() as fh:
|
|
205 |
+ with tempfile.NamedTemporaryFile(mode="w+t") as fh:
|
|
206 | 206 |
# Write the current data to a temporary file
|
207 | 207 |
print_new(upload, overrides, indexed=0, session=session, file=fh)
|
208 | 208 |
fh.flush()
|
... | ... | @@ -888,8 +888,8 @@ class LintianCheck(Check): |
888 | 888 |
if user is not None:
|
889 | 889 |
cmd.extend(['sudo', '-H', '-u', user])
|
890 | 890 |
|
891 |
- cmd.extend(['/usr/bin/lintian', '--show-overrides', '--tags-from-file', temptagfile.name, changespath])
|
|
892 |
- output = six.ensure_text(daklib.daksubprocess.check_output(cmd, stderr=subprocess.STDOUT))
|
|
891 |
+ cmd.extend(['/usr/bin/lintian', '--show-overrides', '--tags-from-file', temptagfile.name, changespath])
|
|
892 |
+ output = six.ensure_text(daklib.daksubprocess.check_output(cmd, stderr=subprocess.STDOUT))
|
|
893 | 893 |
except subprocess.CalledProcessError as e:
|
894 | 894 |
result = e.returncode
|
895 | 895 |
output = six.ensure_text(e.output)
|