comparison profilemanager/manager.py @ 67:7da81d5545a2

missing :
author Jeff Hammel <jhammel@mozilla.com>
date Fri, 07 May 2010 15:40:45 -0700
parents 67dc95a355cc
children 86b137d49467
comparison
equal deleted inserted replaced
66:67dc95a355cc 67:7da81d5545a2
253 if not backups: 253 if not backups:
254 raise NoBackupError("No backups for profile %s in %s" % (profile, self.profiles)) 254 raise NoBackupError("No backups for profile %s in %s" % (profile, self.profiles))
255 backup = backups[0] 255 backup = backups[0]
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)
262 262
263 # restore the backup over ``profile`` 263 # restore the backup over ``profile``