Continue working on Julia code

This commit is contained in:
Anthony Wang 2022-01-30 21:43:14 -06:00
parent 507ee99dcf
commit 840ac8c2cc
Signed by untrusted user: a
GPG key ID: BC96B00AEC5F2D76

View file

@ -93,10 +93,7 @@ G = [Set{Int}() for i = 1:N]
for i = 1:N for i = 1:N
for con in pkginfo[i].conflicts for con in pkginfo[i].conflicts
if con in keys(pkgidx) if con in keys(virtual)
push!(G[i], pkgidx[con])
push!(G[pkgidx[con]], i)
elseif con in keys(virtual)
for j in virtual[con] for j in virtual[con]
if j != i if j != i
push!(G[i], j) push!(G[i], j)
@ -104,6 +101,10 @@ for i = 1:N
end end
end end
end end
if con in keys(pkgidx)
push!(G[i], pkgidx[con])
push!(G[pkgidx[con]], i)
end
end end
end end
``` ```
@ -170,7 +171,7 @@ open("out", "w") do f
end end
``` ```
And time to install everything! Alright, time to install everything!
```sh ```sh
cat out | xargs sudo pacman -Sdd --noconfirm cat out | xargs sudo pacman -Sdd --noconfirm
``` ```