Mercurial > mozilla > hg > ProfileManager
comparison profilemanager/manager.py @ 69:86b137d49467
use only the path element, not the whole tuple
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Fri, 07 May 2010 15:57:14 -0700 |
parents | 7da81d5545a2 |
children | 6e282cacd5f0 |
comparison
equal
deleted
inserted
replaced
68:6cb674db8f51 | 69:86b137d49467 |
---|---|
256 | 256 |
257 # determine path of the backup | 257 # determine path of the backup |
258 if os.path.isabs(backup[0]): | 258 if os.path.isabs(backup[0]): |
259 backup_path = backup | 259 backup_path = backup |
260 else: | 260 else: |
261 backup_path = os.path.join(self.profile_dir, self.backups_dir, backup) | 261 backup_path = os.path.join(self.profile_dir, self.backups_dir, backup[0]) |
262 | 262 |
263 # restore the backup over ``profile`` | 263 # restore the backup over ``profile`` |
264 # make a backup copy first to avoid data loss | 264 # make a backup copy first to avoid data loss |
265 tempdir = tempfile.mktemp() | 265 tempdir = tempfile.mktemp() |
266 shutil.move(path, tempdir) | 266 shutil.move(path, tempdir) |