summaryrefslogtreecommitdiff
path: root/obnam
diff options
context:
space:
mode:
authorLars Wirzenius <liw@gytha>2008-04-13 20:30:39 +0300
committerLars Wirzenius <liw@gytha>2008-04-13 20:30:39 +0300
commitc3189b1456c3d8db4e4350e5b84066283faa77f9 (patch)
treef102edad46fd869ba73ad8b8850beaf0e67f083a /obnam
parentf18ac21d1a25b6aa2eb7408b962011b30962ec68 (diff)
downloadobnam-c3189b1456c3d8db4e4350e5b84066283faa77f9.tar.gz
Remove Application.finish and use Store.commit_host_block instead.
Diffstat (limited to 'obnam')
-rw-r--r--obnam/app.py11
-rw-r--r--obnam/oper_backup.py2
2 files changed, 1 insertions, 12 deletions
diff --git a/obnam/app.py b/obnam/app.py
index 687362f9..a1b819c4 100644
--- a/obnam/app.py
+++ b/obnam/app.py
@@ -293,14 +293,3 @@ class Application:
def update_content_maps(self):
"""Create new content object mapping blocks and upload them."""
self.get_store().update_content_maps()
-
- def finish(self, new_gens):
- """Finish a backup operation by updating maps and uploading host block.
-
- This also removes the host block that has been load. In other
- words, if you want to continue using the application for anything
- that requires the host block, you have to call load_host again.
-
- """
-
- self.get_store().commit_host_block(new_gens)
diff --git a/obnam/oper_backup.py b/obnam/oper_backup.py
index 7265c6ef..6a74432c 100644
--- a/obnam/oper_backup.py
+++ b/obnam/oper_backup.py
@@ -40,6 +40,6 @@ class Backup(obnam.Operation):
gen = app.backup(roots)
- app.finish([gen])
+ app.get_store().commit_host_block([gen])
logging.info("Backup done")