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):
if conflicts:
operations.remove.remove_conflicting_packages(conflicts)
install_files = []
install_files = {}
file_conflicts = []
for path in paths:
pkg = inary.package.Package(path)
......@@ -135,8 +135,12 @@ def install_pkg_names(A, reinstall=False, extra=False):
"} / {} ] => {}").format(paths.index(path) +
1, len(paths), pkg.metadata.package.name), color="yellow")
for file in pkg.files.list:
if file not in install_files:
install_files.append(file)
sha = util.sha1_data(file.path)[0:5]
if sha not in install_files:
install_files[sha] = []
print(sha)
if file not in install_files[sha]:
install_files[sha].append(file)
else:
file_conflicts.append(file)
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