From 840ac8c2ccf481c316fd4f535fb8a27c785686f0 Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Sun, 30 Jan 2022 21:43:14 -0600 Subject: [PATCH] Continue working on Julia code --- content/posts/installing-every-arch-package.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/content/posts/installing-every-arch-package.md b/content/posts/installing-every-arch-package.md index 7fcc4913..400448f2 100644 --- a/content/posts/installing-every-arch-package.md +++ b/content/posts/installing-every-arch-package.md @@ -93,10 +93,7 @@ G = [Set{Int}() for i = 1:N] for i = 1:N for con in pkginfo[i].conflicts - if con in keys(pkgidx) - push!(G[i], pkgidx[con]) - push!(G[pkgidx[con]], i) - elseif con in keys(virtual) + if con in keys(virtual) for j in virtual[con] if j != i push!(G[i], j) @@ -104,6 +101,10 @@ for i = 1:N end end end + if con in keys(pkgidx) + push!(G[i], pkgidx[con]) + push!(G[pkgidx[con]], i) + end end end ``` @@ -170,7 +171,7 @@ open("out", "w") do f end ``` -And time to install everything! +Alright, time to install everything! ```sh cat out | xargs sudo pacman -Sdd --noconfirm ```