projects
/
tahoe-lafs
/
tahoe-lafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7ef694
)
Don't download the deletion marker file unnecessarily.
author
Daira Hopwood
<daira@jacaranda.org>
Tue, 27 Oct 2015 17:10:15 +0000
(17:10 +0000)
committer
Daira Hopwood
<daira@jacaranda.org>
Tue, 27 Oct 2015 18:44:55 +0000
(18:44 +0000)
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
src/allmydata/frontends/magic_folder.py
patch
|
blob
|
history
diff --git
a/src/allmydata/frontends/magic_folder.py
b/src/allmydata/frontends/magic_folder.py
index 96156f60e9693c47ba0c8f6266c0262d02a2eaf9..f9e0433bcc0b6990cc656f4328113d34d45628b6 100644
(file)
--- a/
src/allmydata/frontends/magic_folder.py
+++ b/
src/allmydata/frontends/magic_folder.py
@@
-712,10
+712,10
@@
class Downloader(QueueMixin, WriteFileMixin):
d.addCallback(lambda ign: fileutil.make_dirs(abspath_u))
d.addCallback(lambda ign: abspath_u)
else:
- d.addCallback(lambda ign: file_node.download_best_version())
if metadata.get('deleted', False):
d.addCallback(lambda ign: self._rename_deleted_file(abspath_u))
else:
+ d.addCallback(lambda ign: file_node.download_best_version())
d.addCallback(lambda contents: self._write_downloaded_file(abspath_u, contents,
is_conflict=is_conflict))