diff options
author | Lars Wirzenius <liw@liw.fi> | 2017-06-11 19:26:35 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2017-06-11 19:26:35 +0300 |
commit | 355a10cb202c4bc37a098be2790fa5856f161952 (patch) | |
tree | 49eedef4360da67b89d7fde92aa852b55090c914 | |
parent | d7dc7d8c80769db9bacc4a108ffd1957fa69b69c (diff) | |
download | obnam-355a10cb202c4bc37a098be2790fa5856f161952.tar.gz |
Add: ChunkStore.remove_bag
-rw-r--r-- | obnamlib/fmt_ga/chunk_store.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/obnamlib/fmt_ga/chunk_store.py b/obnamlib/fmt_ga/chunk_store.py index 8d8741b6..35dcdca9 100644 --- a/obnamlib/fmt_ga/chunk_store.py +++ b/obnamlib/fmt_ga/chunk_store.py @@ -74,6 +74,9 @@ class GAChunkStore(object): for i in range(len(bag)): yield obnamlib.make_object_id(bag_id, i) + def remove_bag(self, bag_id): + self._bag_store.remove_bag(bag_id) + def has_chunk(self, chunk_id): # This is ugly, 'cause it requires reading in the whole bag. # We could easily check if the bag exists, but not whether it |