aboutsummaryrefslogtreecommitdiffstats
path: root/MgaRepo/binrepo.py
diff options
context:
space:
mode:
Diffstat (limited to 'MgaRepo/binrepo.py')
-rw-r--r--MgaRepo/binrepo.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/MgaRepo/binrepo.py b/MgaRepo/binrepo.py
index 1ad3549..747f3eb 100644
--- a/MgaRepo/binrepo.py
+++ b/MgaRepo/binrepo.py
@@ -70,6 +70,7 @@ def download_binary(topdir, sha1, filename):
try:
status, output = execcmd(cmd, show=True)
except Error, e:
+ os.unlink(dest)
raise Error, "Could not download file %s\n" % url
def download_binaries(topdir):