~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/store.py

  • Committer: mbp at sourcefrog
  • Date: 2005-03-29 01:26:19 UTC
  • Revision ID: mbp@sourcefrog.net-20050329012619-dd8959fc63b3a074
- fixup checks on retrieved files to cope with compression,
  and have less checks now there's a check command again

- move code to destroy stores into the ScratchStore subclass

Show diffs side-by-side

added added

removed removed

Lines of Context:
169
169
 
170
170
    def __del__(self):
171
171
        for f in os.listdir(self._basedir):
172
 
            fpath = os.path.join(self._basedir, f)
173
 
            # needed on windows, and maybe some other filesystems
174
 
            os.chmod(fpath, 0600)
175
 
            os.remove(fpath)
 
172
            os.remove(os.path.join(self._basedir, f))
176
173
        os.rmdir(self._basedir)
177
174
        mutter("%r destroyed" % self)