git.samba.org
/
jelmer
/
calypso.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c18cc9b
)
Set return value for import_file to match success/failure
author
Keith Packard
<keithp@keithp.com>
Tue, 22 Oct 2013 06:14:33 +0000
(14:14 +0800)
committer
Keith Packard
<keithp@keithp.com>
Tue, 22 Oct 2013 06:14:33 +0000
(14:14 +0800)
Otherwise, calypso --import exits with random values
Signed-off-by: Keith Packard <keithp@keithp.com>
calypso/webdav.py
patch
|
blob
|
history
diff --git
a/calypso/webdav.py
b/calypso/webdav.py
index 2fa635fed4ff5b899c6cc32d3dde17424edf6683..913ef9e186efe95ba4b4a46215b6295ad13f2c67 100644
(file)
--- a/
calypso/webdav.py
+++ b/
calypso/webdav.py
@@
-490,9
+490,10
@@
class Collection(object):
else:
self.create_file(new_item, context={})
self.log.debug("Added %s from %s", new_item.name, path)
+ return True
except Exception, ex:
self.log.exception("Failed to import: %s", path)
- r
ai
se
+ r
eturn Fal
se
def write(self, headers=None, items=None):
return True