From a3b90f747478f21b9ccfb70fe314f13befe73f1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubom=C3=ADr=20Sedl=C3=A1=C5=99?= Date: Wed, 11 Oct 2017 08:55:34 +0200 Subject: [PATCH] Fixup for opening config dumps MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Lubomír Sedlář --- bin/pungi-koji | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/pungi-koji b/bin/pungi-koji index 613e94ed..3456cb6a 100755 --- a/bin/pungi-koji +++ b/bin/pungi-koji @@ -269,7 +269,7 @@ def run_compose(compose, create_latest_link=True, latest_link_status=None): config_dump = compose.paths.log.log_file("global", "config-copy_%s_%s" % (os.path.basename(config_file), date_str)) with open(config_dump, "w") as dest: - with open(config_file, 'r').read() as src: + with open(config_file, 'r') as src: dest.write(src.read()) config_dump_full = compose.paths.log.log_file("global", "config-dump_%s" % date_str) with open(config_dump_full, "w") as f: