Skip to content

Commit

Permalink
add parallel package download
Browse files Browse the repository at this point in the history
  • Loading branch information
sulincix committed May 21, 2024
1 parent 283b989 commit c3a9b65
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/operations/package-manager/install.vala
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,17 @@ private static int install_main (string[] args) {
}
quarantine_reset ();
package[] pkg_obj = {};
jobs j = new jobs();
foreach (string name in pkgs) {
if (isfile (name)) {
continue;
}
if (is_available_from_repository (name)) {
package p = get_from_repository (name);
p.download_only ();
package *p = get_from_repository (name);
j.add((void*)p->download_only, p);
}
}
j.run();
if (get_bool ("download-only")) {
return 0;
}
Expand Down

0 comments on commit c3a9b65

Please sign in to comment.