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

Unified Diff: src/platform/dev/autoupdate.py

Issue 1072011: Fix broken devserver -- missing import and wrong method for file->dir copy. (Closed)
Patch Set: Fix whitespace. Created 10 years, 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform/dev/autoupdate.py
diff --git a/src/platform/dev/autoupdate.py b/src/platform/dev/autoupdate.py
index 4461533e45d98a53db59f354226c1e2ef19a2495..dcc004732bdbc3c43f4bd8cd751b01dfdb61c0ae 100644
--- a/src/platform/dev/autoupdate.py
+++ b/src/platform/dev/autoupdate.py
@@ -6,10 +6,11 @@ from buildutil import BuildObject
from xml.dom import minidom
import os
+import shutil
import web
class Autoupdate(BuildObject):
- # Basic functionality of handling ChromeOS autoupdate pings
+ # Basic functionality of handling ChromeOS autoupdate pings
# and building/serving update images.
# TODO(rtc): Clean this code up and write some tests.
@@ -92,7 +93,7 @@ class Autoupdate(BuildObject):
if not self.serve_only:
web.debug('Found an image, copying it to static')
try:
- shutil.copyfile('%s/update.gz' % image_path, self.static_dir)
+ shutil.copy('%s/update.gz' % image_path, self.static_dir)
except Exception, e:
web.debug('Unable to copy update.gz from %s to %s' \
% (image_path, self.static_dir))
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698