comparison profilemanager/manager.py @ 74:b6bb59b79525

* return the backed-up profile * further test restoring profiles
author Jeff Hammel <jhammel@mozilla.com>
date Fri, 07 May 2010 17:09:32 -0700
parents 1cfd259f74cf
children a63dd19807c8
comparison
equal deleted inserted replaced
73:1cfd259f74cf 74:b6bb59b79525
295 parser.remove_option(section, 'Backups') 295 parser.remove_option(section, 'Backups')
296 backups_dir = os.path.join(self.profile_dir, self.backups_dir) 296 backups_dir = os.path.join(self.profile_dir, self.backups_dir)
297 if not os.listdir(backups_dir): 297 if not os.listdir(backups_dir):
298 shutil.rmtree(backups_dir) 298 shutil.rmtree(backups_dir)
299 299
300 # return which backup is restored
301 return backup
302
300 def temporary(self): 303 def temporary(self):
301 """make a temporary profile""" 304 """make a temporary profile"""
302 raise NotImplementedError 305 raise NotImplementedError
303 306
304 def merge(self, output, *profiles): 307 def merge(self, output, *profiles):