update pmm

master
Cole Deck 5 years ago
parent fb4e64f6db
commit 21a72d5c1e

@ -116,9 +116,10 @@ function pmm
if test "$ins" = "1"
for j in (brl list)
if strat $j apt --version > /dev/null 2>&1
echo "Searching the"(set_color green) "$j"(set_color normal) "stratum."
set this 1
for k in $pkgs
if test -z (apt list "$k" 2>/dev/null | awk -F'/' 'NR>1{print $1}')
if test -z (strat $j apt list "$k" 2>/dev/null | awk -F'/' 'NR>1{print $1}')
set this
end
end
@ -129,9 +130,10 @@ function pmm
end
for j in (brl list)
if strat $j pacman --version > /dev/null 2>&1
echo "Searching the"(set_color green) "$j"(set_color normal) "stratum."
set this 1
for k in $pkgs
if test -z (pacman -Ss "$k" | grep "/$k ")
if test -z (strat $j pacman -Ss "$k" | grep "/$k ")
set this
end
end
@ -142,9 +144,10 @@ function pmm
end
for j in (brl list)
if strat $j dnf --version > /dev/null 2>&1
echo "Searching the"(set_color green) "$j"(set_color normal) "stratum."
set this 1
for k in $pkgs
if dnf list "$k" > /dev/null 2>&1
if strat $j dnf list "$k" > /dev/null 2>&1
set this 1
else
set this
@ -157,9 +160,10 @@ function pmm
end
for j in (brl list)
if strat $j xbps-install --version > /dev/null 2>&1
echo "Searching the"(set_color green) "$j"(set_color normal) "stratum."
set this 1
for k in $pkgs
if xbps-query -Rs $k | grep "] $k-" > /dev/null 2>&1
if strat $j xbps-query -Rs $k | grep "] $k-" > /dev/null 2>&1
set this 1
else
set this
@ -219,4 +223,4 @@ function pmm
end
end
end
end
end
Loading…
Cancel
Save