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

Unified Diff: client/common_lib/chromiumos_updater.py

Issue 3382017: AU: moved updated marker from /tmp to /var/run. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/autotest.git
Patch Set: Created 10 years, 3 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: client/common_lib/chromiumos_updater.py
diff --git a/client/common_lib/chromiumos_updater.py b/client/common_lib/chromiumos_updater.py
index a42943fa8db2a05f2b38d7bfb0f4f678f6db60e5..311bd58e359d37cda6dbe58c809655167aeb88a7 100644
--- a/client/common_lib/chromiumos_updater.py
+++ b/client/common_lib/chromiumos_updater.py
@@ -15,6 +15,7 @@ STATEFULDEV_UPDATER = '/usr/local/bin/stateful_update'
UPDATER_BIN = '/usr/bin/update_engine_client'
UPDATER_IDLE = 'UPDATE_STATUS_IDLE'
UPDATER_NEED_REBOOT = 'UPDATE_STATUS_UPDATED_NEED_REBOOT'
+UPDATED_MARKER = '/var/run/update_engine_autoupdate_completed'
class ChromiumOSError(error.InstallError):
@@ -44,7 +45,7 @@ class ChromiumOSUpdater():
def reset_update_engine(self):
logging.info('Resetting update-engine.')
- self._run('rm -f /tmp/update_engine_autoupdate_completed')
+ self._run('rm -f %s' % UPDATED_MARKER)
try:
self._run('initctl stop update-engine')
except error.AutoservRunError, e:
« 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