synchronous package list updates

master
shark 6 years ago
parent 0136919bd4
commit daa3ead1e1

@ -25,33 +25,36 @@ function pmm
for j in (brl list) for j in (brl list)
if strat $j apt --version > /dev/null 2>&1 if strat $j apt --version > /dev/null 2>&1
echo "Updating the"(set_color green) "$j"(set_color normal) "stratum." echo "Updating the"(set_color green) "$j"(set_color normal) "stratum."
sudo strat $j apt update sudo strat -r $j apt update &
end end
end end
for j in (brl list) for j in (brl list)
if strat $j pacman --version > /dev/null 2>&1 if strat $j pacman --version > /dev/null 2>&1
echo "Updating the"(set_color green) "$j"(set_color normal) "stratum." echo "Updating the"(set_color green) "$j"(set_color normal) "stratum."
sudo strat $j pacman -Sy sudo strat -r $j pacman -Sy &
end end
end end
for j in (brl list) for j in (brl list)
if strat $j xbps-install --version > /dev/null 2>&1 if strat $j xbps-install --version > /dev/null 2>&1
echo "Updating the"(set_color green) "$j"(set_color normal) "stratum." echo "Updating the"(set_color green) "$j"(set_color normal) "stratum."
sudo strat $j xbps-install -S sudo strat -r $j xbps-install -S &
end end
end end
for j in (brl list) for j in (brl list)
if strat $j dnf --version > /dev/null 2>&1 if strat $j dnf --version > /dev/null 2>&1
echo "Updating the"(set_color green) "$j"(set_color normal) "stratum." echo "Updating the"(set_color green) "$j"(set_color normal) "stratum."
sudo strat $j dnf check-update sudo strat -r $j dnf check-update &
end end
end end
for j in (brl list) for j in (brl list)
if strat $j emerge --version > /dev/null 2>&1 if strat $j emerge --version > /dev/null 2>&1
echo "Updating the"(set_color green) "$j"(set_color normal) "stratum." echo "Updating the"(set_color green) "$j"(set_color normal) "stratum."
sudo strat $j emerge --sync sudo strat -r $j emerge --sync &
end end
end end
while jobs -q
wait (jobs -p)
end
end end
if test "$u" = "1" if test "$u" = "1"
for j in (brl list) for j in (brl list)

Loading…
Cancel
Save