mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
fix more callback usage
This commit is contained in:
+1
-1
@@ -94,7 +94,7 @@ class RemoteGS(RemoteBASE):
|
|||||||
|
|
||||||
for path_info in path_infos:
|
for path_info in path_infos:
|
||||||
paths.append(self._list_paths(path_info.bucket, path_info.path))
|
paths.append(self._list_paths(path_info.bucket, path_info.path))
|
||||||
callback.update(str(path_info))
|
callback(str(path_info))
|
||||||
|
|
||||||
paths = set(itertools.chain.from_iterable(paths))
|
paths = set(itertools.chain.from_iterable(paths))
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -207,7 +207,7 @@ class RemoteS3(RemoteBASE):
|
|||||||
|
|
||||||
for path_info in path_infos:
|
for path_info in path_infos:
|
||||||
paths.append(self._list_paths(path_info.bucket, path_info.path))
|
paths.append(self._list_paths(path_info.bucket, path_info.path))
|
||||||
callback.update(str(path_info))
|
callback(str(path_info))
|
||||||
|
|
||||||
paths = set(itertools.chain.from_iterable(paths))
|
paths = set(itertools.chain.from_iterable(paths))
|
||||||
return [path_info.path in paths for path_info in path_infos]
|
return [path_info.path in paths for path_info in path_infos]
|
||||||
|
|||||||
@@ -160,7 +160,7 @@ class RemoteSSH(RemoteBASE):
|
|||||||
if exc.errno != errno.ENOENT:
|
if exc.errno != errno.ENOENT:
|
||||||
raise
|
raise
|
||||||
ret.append(False)
|
ret.append(False)
|
||||||
callback.update(path)
|
callback(path)
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
with self.ssh(path_infos[0]) as ssh:
|
with self.ssh(path_infos[0]) as ssh:
|
||||||
|
|||||||
Reference in New Issue
Block a user