diff options
author | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2007-11-07 17:24:25 (GMT) |
---|---|---|
committer | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2007-11-07 17:24:25 (GMT) |
commit | 41ab44b3b2e9169f60c2c9e4af3f14a2fc89c074 (patch) | |
tree | d284a612c11e21f711cc7f406a3ec3683e388850 | |
parent | e6b3bfc41d8d1fce434e75ffe1620830a0aa8c3a (diff) |
#4714 Fix copy of entries without file to removable devices.
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | src/olpc/datastore/backingstore.py | 4 |
2 files changed, 2 insertions, 4 deletions
@@ -1,3 +1,5 @@ +* #4714 Fix copy of entries without file to removable devices. (tomeu) + Snapshot 74cbc13878 * #4654 Hard link files on check out instead of copying if possible. (tomeu) diff --git a/src/olpc/datastore/backingstore.py b/src/olpc/datastore/backingstore.py index a841f73..c4af266 100644 --- a/src/olpc/datastore/backingstore.py +++ b/src/olpc/datastore/backingstore.py @@ -746,8 +746,6 @@ class InplaceFileBackingStore(FileBackingStore): # File Management API def create_async(self, props, filelike, completion, can_move=False): """Inplace backing store doesn't copy, so no need for async""" - if not filelike: - raise RuntimeError("Filelike must be valid for async create") try: uid = self.create(props, filelike, can_move) completion(None, uid) @@ -817,8 +815,6 @@ class InplaceFileBackingStore(FileBackingStore): return content def update_async(self, uid, props, filelike, completion, can_move=False): - if filelike is None: - raise RuntimeError("Filelike must be valid for async update") try: self.update(uid, props, filelike, can_move) completion() |