From 21a72d5c1e3e32525ba84e8930af0bbf320471a0 Mon Sep 17 00:00:00 2001 From: Cole Deck Date: Mon, 15 Apr 2019 07:56:24 -0500 Subject: [PATCH] update pmm --- pmm.fish | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/pmm.fish b/pmm.fish index 5d0bbbf..dff45a3 100644 --- a/pmm.fish +++ b/pmm.fish @@ -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 \ No newline at end of file