Index: client/common_lib/base_packages.py |
diff --git a/client/common_lib/base_packages.py b/client/common_lib/base_packages.py |
index a103bec1e7048cbfe4c74a7b9230b7f02d2fff62..5dda4a1fa467896a163671543c4ee219bddefbc1 100644 |
--- a/client/common_lib/base_packages.py |
+++ b/client/common_lib/base_packages.py |
@@ -152,6 +152,9 @@ class HttpFetcher(RepositoryFetcher): |
logging.debug('Successfully fetched %s from %s', filename, |
package_url) |
except error.CmdError: |
+ # remove whatever junk was retrieved when the get failed |
+ self.run_command('rm -f %s' % dest_path) |
+ |
raise error.PackageFetchError('%s not found in %s' % (filename, |
package_url)) |