diff options
author | Lars Wirzenius <liw@gytha> | 2008-04-13 20:30:39 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@gytha> | 2008-04-13 20:30:39 +0300 |
commit | c3189b1456c3d8db4e4350e5b84066283faa77f9 (patch) | |
tree | f102edad46fd869ba73ad8b8850beaf0e67f083a /obnam | |
parent | f18ac21d1a25b6aa2eb7408b962011b30962ec68 (diff) | |
download | obnam-c3189b1456c3d8db4e4350e5b84066283faa77f9.tar.gz |
Remove Application.finish and use Store.commit_host_block instead.
Diffstat (limited to 'obnam')
-rw-r--r-- | obnam/app.py | 11 | ||||
-rw-r--r-- | obnam/oper_backup.py | 2 |
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") |