tools: fix bug in download()
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Fri, 12 Apr 2013 10:43:12 +0000 (13:43 +0300)
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Fri, 12 Apr 2013 10:43:12 +0000 (13:43 +0300)
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
tools/updateinfo/updateutils.py

index 01a9778..8f545a8 100755 (executable)
@@ -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: