summaryrefslogtreecommitdiff
path: root/obnamlib/fmt_ga/client.py
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2015-07-11 16:57:55 +0300
committerLars Wirzenius <liw@liw.fi>2015-07-11 16:57:55 +0300
commit7a8a2fceac9e1af62f35a0ac2a75167ab76916fe (patch)
tree87778f95fd673af239654ba8f3cd0d5ca715486a /obnamlib/fmt_ga/client.py
parentd262b15b08eee8c3c9fce81c1779510c36016dcd (diff)
downloadobnam-7a8a2fceac9e1af62f35a0ac2a75167ab76916fe.tar.gz
Bug fixes
Diffstat (limited to 'obnamlib/fmt_ga/client.py')
-rw-r--r--obnamlib/fmt_ga/client.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/obnamlib/fmt_ga/client.py b/obnamlib/fmt_ga/client.py
index c51cb29c..fd6085a4 100644
--- a/obnamlib/fmt_ga/client.py
+++ b/obnamlib/fmt_ga/client.py
@@ -534,6 +534,7 @@ class GAFileMetadata(object):
file_dict = self._added_files.get_file_dict(filename)
if stat.S_ISDIR(mode):
dir_obj = obnamlib.GADirectory()
+ dir_obj.add_file('.')
for key, value in file_dict['keys'].items():
dir_obj.set_file_key('.', key, value)
self._tree.set_directory(filename, dir_obj)
@@ -584,7 +585,7 @@ class GAFileMetadata(object):
dir_obj, basename = self._get_mutable_dir_obj(filename)
assert basename != '.'
if dir_obj:
- dir_obj.clear_file_chunk_ids(filename)
+ dir_obj.clear_file_chunk_ids(basename)
class AddedFiles(object):