Strongly connected components with extra dependencies
Dependencies
- [2]
KBT6MOT5Including the link_extra files in blake3sums - [3]
ODUDDQRYAdding the OCaml interface - [4]
BDEVQIAUHandle cyclic Ubuntu dependencies - [5]
LIUJQXB7Allow merging two packages based on regular expressions of their name - [6]
UWQB743KFirst working shell (with ocaml code) - [*]
SI454P2VDocumentation and cleanup
Change contents
- replacement in src/extract.rs at line 174
let f = finalize(&mut vertices, client, link_extra, &files, *v).await?;let f = finalize(&mut vertices, &sccs, client, link_extra, &files, *v).await?; - edit in src/extract.rs at line 269[8.3617][3.19756]
file: &Path, - replacement in src/extract.rs at line 283
Err(e) => return Err(e),Err(e) => {return Err(e);} - edit in src/extract.rs at line 410
debug!("hash context {:?} {:?}", vertices[v].pkg.package, s); - edit in src/extract.rs at line 695
sccs: &[Vec<usize>], - edit in src/extract.rs at line 806
sccs, - replacement in src/extract.rs at line 834
hash_reader(file, &mut output_hasher).await?;hash_reader(&blakesums, file, &mut output_hasher).await?; - replacement in src/extract.rs at line 884
if let Ok(mut dir) = tokio::fs::read_dir(&elt).await {let dir = tokio::fs::read_dir(&elt).await;debug!("copy {:?}", dir);if let Ok(mut dir) = dir { - replacement in src/extract.rs at line 903
info!("hashing {:?}", to_p);info!("copy, hashing {:?}", to_p); - replacement in src/extract.rs at line 906
hash_reader(file, &mut hasher).await.unwrap();hash_reader(&to_p, file, &mut hasher).await.unwrap(); - edit in src/extract.rs at line 922
sccs: &[Vec<usize>], - edit in src/extract.rs at line 935
let scc = vertices[v].scc; - replacement in src/extract.rs at line 940
for d in (0..v).rev() {if dep.is_match(vertices[d].pkg.package) {debug!("match, copying {:?} to {:?}",vertices[d].context_path, vertices[v].context_path);copy(&mut hashing,&vertices[d].context_path.clone().unwrap(),&tmp.dir_path(),).await?;for s in &sccs[..scc] {for &d in s.iter() {if dep.is_match(vertices[d].pkg.package) {debug!("match, copying {:?} to {:?}",vertices[d], vertices[v].context_path);copy(&mut hashing,&vertices[d].context_path.clone().unwrap(),&tmp.dir_path(),).await?;} - replacement in src/extract.rs at line 1011
info!("hashing {:?}", f);info!("create_final_path: hashing {:?}", f); - replacement in src/extract.rs at line 1014
hash_reader(file, &mut hasher).await.unwrap();hash_reader(&dest_path, file, &mut hasher).await.unwrap();