Mercurial > mozilla > hg > ProfileManager
changeset 70:6e282cacd5f0
split the string
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Fri, 07 May 2010 16:06:05 -0700 |
parents | 86b137d49467 |
children | 494ea3c2f578 |
files | profilemanager/manager.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/profilemanager/manager.py Fri May 07 15:57:14 2010 -0700 +++ b/profilemanager/manager.py Fri May 07 16:06:05 2010 -0700 @@ -281,12 +281,13 @@ # delete the entry from ``profiles.ini`` parser = self.parser() section = self.section(profile) - backups = parser.get(section, 'Backups') + backups = parser.get(section, 'Backups').split(':') backups = [ i for i in backups if i != backup[0] ] parser.set(section, 'Backups', ':'.join(backups)) # if there are no backups, delete the ``backups`` line # and the backups directory + import pdb; pdb.set_trace() if not backups: parser.remove(section, 'Backups') backups_dir = os.path.join(self.profile_dir, self.backups_dir)