Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8478)

Unified Diff: client/common_lib/base_packages.py

Issue 1595019: Merge remote branch 'origin/upstream' into tempbranch (Closed)
Patch Set: Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « client/bin/kernel.py ('k') | client/profilers/powertop/powertop.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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))
« no previous file with comments | « client/bin/kernel.py ('k') | client/profilers/powertop/powertop.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698