Kaydet (Commit) 2060b774 authored tarafından Your Name's avatar Your Name

speedup integration check

üst 4880ff39
...@@ -124,7 +124,7 @@ def install_pkg_names(A, reinstall=False, extra=False): ...@@ -124,7 +124,7 @@ def install_pkg_names(A, reinstall=False, extra=False):
if conflicts: if conflicts:
operations.remove.remove_conflicting_packages(conflicts) operations.remove.remove_conflicting_packages(conflicts)
install_files = [] install_files = {}
file_conflicts = [] file_conflicts = []
for path in paths: for path in paths:
pkg = inary.package.Package(path) pkg = inary.package.Package(path)
...@@ -135,8 +135,12 @@ def install_pkg_names(A, reinstall=False, extra=False): ...@@ -135,8 +135,12 @@ def install_pkg_names(A, reinstall=False, extra=False):
"} / {} ] => {}").format(paths.index(path) + "} / {} ] => {}").format(paths.index(path) +
1, len(paths), pkg.metadata.package.name), color="yellow") 1, len(paths), pkg.metadata.package.name), color="yellow")
for file in pkg.files.list: for file in pkg.files.list:
if file not in install_files: sha = util.sha1_data(file.path)[0:5]
install_files.append(file) if sha not in install_files:
install_files[sha] = []
print(sha)
if file not in install_files[sha]:
install_files[sha].append(file)
else: else:
file_conflicts.append(file) file_conflicts.append(file)
ctx.ui.info( ctx.ui.info(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment