Fix broken devserver -- missing import and wrong method for file->dir copy.
Review URL: http://codereview.chromium.org/1072011
diff --git a/autoupdate.py b/autoupdate.py
index 4461533..dcc0047 100644
--- a/autoupdate.py
+++ b/autoupdate.py
@@ -6,10 +6,11 @@
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 @@
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))