# HG changeset patch # User Jeff Hammel # Date 1273273565 25200 # Node ID 6e282cacd5f0bc15ef7d701637d3192c18621bd5 # Parent 86b137d49467448f5f7fa2d7347db7664108a98d split the string diff -r 86b137d49467 -r 6e282cacd5f0 profilemanager/manager.py --- 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)