diff options
author | Nicolas Vigier <boklm@mageia.org> | 2011-08-21 11:42:27 +0000 |
---|---|---|
committer | Nicolas Vigier <boklm@mageia.org> | 2011-08-21 11:42:27 +0000 |
commit | 6ea2837358347482044e3ae3ce0914f087a03a39 (patch) | |
tree | 077897bc6e58e11d1806cd0dbc1e9f816245a1d7 | |
parent | 32562381d23f0d5522eaa4217d4f6d5450f05d15 (diff) | |
download | mgarepo-6ea2837358347482044e3ae3ce0914f087a03a39.tar mgarepo-6ea2837358347482044e3ae3ce0914f087a03a39.tar.gz mgarepo-6ea2837358347482044e3ae3ce0914f087a03a39.tar.bz2 mgarepo-6ea2837358347482044e3ae3ce0914f087a03a39.tar.xz mgarepo-6ea2837358347482044e3ae3ce0914f087a03a39.zip |
remove file when there was an error during download
-rw-r--r-- | MgaRepo/binrepo.py | 1 |
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): |