diff options
author | Lars Wirzenius <liw@liw.fi> | 2013-12-19 20:13:11 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2013-12-28 21:51:24 +0000 |
commit | 0818dbb524e4e7901185654d367d9c6d023c6b6a (patch) | |
tree | e405553646915c58409937fc51db654708ee38b4 /obnamlib/plugins/restore_plugin.py | |
parent | 0bcd247004a7946d4c0d11bc3e0c6642ef18e133 (diff) | |
download | obnam-0818dbb524e4e7901185654d367d9c6d023c6b6a.tar.gz |
Properly close repo in restore
Diffstat (limited to 'obnamlib/plugins/restore_plugin.py')
-rw-r--r-- | obnamlib/plugins/restore_plugin.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/obnamlib/plugins/restore_plugin.py b/obnamlib/plugins/restore_plugin.py index 4b825a86..dffa0f19 100644 --- a/obnamlib/plugins/restore_plugin.py +++ b/obnamlib/plugins/restore_plugin.py @@ -138,10 +138,9 @@ class RestorePlugin(obnamlib.ObnamPlugin): self.restore_something(gen, arg) self.app.dump_memory_profile('at restoring %s' % repr(arg)) - # FIXME: Close the repository here, so that its vfs gets - # closed. This is not yet supported by RepositoryInterface. if self.write_ok: self.fs.close() + self.repo.close() self.app.ts.clear() self.report_stats() |