Show More
@@ -38,7 +38,7 b' class basestore(object):' | |||||
38 | self.url = url |
|
38 | self.url = url | |
39 |
|
39 | |||
40 | def put(self, source, hash): |
|
40 | def put(self, source, hash): | |
41 |
'''Put source file into the store |
|
41 | '''Put source file into the store so it can be retrieved by hash.''' | |
42 | raise NotImplementedError('abstract method') |
|
42 | raise NotImplementedError('abstract method') | |
43 |
|
43 | |||
44 | def exists(self, hashes): |
|
44 | def exists(self, hashes): |
@@ -25,8 +25,7 b' class localstore(basestore.basestore):' | |||||
25 | def put(self, source, hash): |
|
25 | def put(self, source, hash): | |
26 | if lfutil.instore(self.remote, hash): |
|
26 | if lfutil.instore(self.remote, hash): | |
27 | return |
|
27 | return | |
28 |
lfutil.link(lfutil.storepath(self.re |
|
28 | lfutil.link(source, lfutil.storepath(self.remote, hash)) | |
29 | lfutil.storepath(self.remote, hash)) |
|
|||
30 |
|
29 | |||
31 | def exists(self, hashes): |
|
30 | def exists(self, hashes): | |
32 | retval = {} |
|
31 | retval = {} |
General Comments 0
You need to be logged in to leave comments.
Login now