Show More
@@ -39,11 +39,8 b' class localstore(basestore.basestore):' | |||||
39 | if not path: |
|
39 | if not path: | |
40 | raise basestore.StoreError(filename, hash, self.url, |
|
40 | raise basestore.StoreError(filename, hash, self.url, | |
41 | _("can't get file locally")) |
|
41 | _("can't get file locally")) | |
42 |
|
|
42 | with open(path, 'rb') as fd: | |
43 | try: |
|
|||
44 | return lfutil.copyandhash(fd, tmpfile) |
|
43 | return lfutil.copyandhash(fd, tmpfile) | |
45 | finally: |
|
|||
46 | fd.close() |
|
|||
47 |
|
44 | |||
48 | def _verifyfile(self, cctx, cset, contents, standin, verified): |
|
45 | def _verifyfile(self, cctx, cset, contents, standin, verified): | |
49 | filename = lfutil.splitstandin(standin) |
|
46 | filename = lfutil.splitstandin(standin) |
General Comments 0
You need to be logged in to leave comments.
Login now