]> scripts.mit.edu Git - wizard.git/commit
Fix some bugs and make --continue handling more robust.
authorEdward Z. Yang <ezyang@mit.edu>
Tue, 18 Jan 2011 12:25:08 +0000 (12:25 +0000)
committerEdward Z. Yang <ezyang@mit.edu>
Tue, 18 Jan 2011 12:25:08 +0000 (12:25 +0000)
commit783808fd51e61f0e55ca19adb1e39f3eaabec2c0
tree89f232163cf5fa0b32a0fe0eea3e1cd702b49436
parentd89b10055d17a17b47f9fd424a1e6120bccd106f
Fix some bugs and make --continue handling more robust.

* chdir_to_production incorrectly changed your directory
  to the *working copy* if an upgrade was in progress; this
  effectively meant that Wizard would fail to restore
  your backups in the event of an upgrade failure.  Fixing
  this also meant this function went from util to command.

* Rewrote the current directory handling for --continue, so
  that the invariant "your top-level current directory is
  the production copy" is preserved.

* Change the semantics of .wizard/pending, so that we have
  some amount of "locking" on a copy if a pending file is
  less than a day old.  Remove this file when the install
  is successful.

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
TODO
wizard/command/__init__.py
wizard/command/backup.py
wizard/command/blacklist.py
wizard/command/restore.py
wizard/command/upgrade.py
wizard/sql.py
wizard/util.py