From 2ef1b12375d809108796e0b2f061bcf78b11aab2 Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Fri, 12 Apr 2013 13:43:12 +0300 Subject: [PATCH] tools: fix bug in download() Signed-off-by: Markus Lehtonen --- tools/updateinfo/updateutils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/updateinfo/updateutils.py b/tools/updateinfo/updateutils.py index 01a9778..8f545a8 100755 --- a/tools/updateinfo/updateutils.py +++ b/tools/updateinfo/updateutils.py @@ -36,8 +36,7 @@ def download(url, credentials, outdir, cachedir, target_fname=None): dest_file = os.path.join(outdir, target_fname) else: dest_file = os.path.join(outdir, fname) - if not os.path.exists(dest_file): - shutil.copy2(cached_file, dest_file) + shutil.copy2(cached_file, dest_file) def parse_package_list(filename): with open(filename, "rb") as package_file: -- 2.7.4