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