summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2015-07-11 17:09:58 +0300
committerLars Wirzenius <liw@liw.fi>2015-07-11 17:09:58 +0300
commit86eced83a6787b3da4f4a0dbfd9ddb5667d1f464 (patch)
tree6de4d061c9296ee802bdcbe4e0436bed9967849c
parent7a8a2fceac9e1af62f35a0ac2a75167ab76916fe (diff)
downloadobnam-86eced83a6787b3da4f4a0dbfd9ddb5667d1f464.tar.gz
Drop unnecessary file removal
Either it's a new (and empty) parent directory, or the parent directory didn't have the file, when the file was originally added.
-rw-r--r--obnamlib/fmt_ga/client.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/obnamlib/fmt_ga/client.py b/obnamlib/fmt_ga/client.py
index fd6085a4..9943834e 100644
--- a/obnamlib/fmt_ga/client.py
+++ b/obnamlib/fmt_ga/client.py
@@ -548,7 +548,6 @@ class GAFileMetadata(object):
else:
parent_obj = self._make_mutable(parent_obj)
- parent_obj.remove_file(basename)
parent_obj.add_file(basename)
for key, value in file_dict['keys'].items():
parent_obj.set_file_key(basename, key, value)