Show More
@@ -36,11 +36,8 b' class localstore(basestore.basestore):' | |||||
36 |
|
36 | |||
37 |
|
37 | |||
38 | def _getfile(self, tmpfile, filename, hash): |
|
38 | def _getfile(self, tmpfile, filename, hash): | |
39 |
|
|
39 | path = lfutil.findfile(self.remote, hash) | |
40 | path = lfutil.storepath(self.remote, hash) |
|
40 | if not path: | |
41 | elif lfutil.inusercache(self.ui, hash): |
|
|||
42 | path = lfutil.usercachepath(self.ui, hash) |
|
|||
43 | else: |
|
|||
44 | raise basestore.StoreError(filename, hash, self.url, |
|
41 | raise basestore.StoreError(filename, hash, self.url, | |
45 | _("can't get file locally")) |
|
42 | _("can't get file locally")) | |
46 | fd = open(path, 'rb') |
|
43 | fd = open(path, 'rb') |
General Comments 0
You need to be logged in to leave comments.
Login now