From: Urban Wallasch Date: Sat, 30 May 2020 09:37:06 +0000 (+0200) Subject: * Use repository mode for meta data preview only in install subroutine. X-Git-Url: https://git.packet-gain.de/?a=commitdiff_plain;h=579ca4ebce6201528f7d0156004ad1682ee5c407;p=xbpsui.git * Use repository mode for meta data preview only in install subroutine. --- diff --git a/XbpsUI.sh b/XbpsUI.sh index 4e82a72..0057544 100755 --- a/XbpsUI.sh +++ b/XbpsUI.sh @@ -150,9 +150,11 @@ fzfOpt=( --preview-window=right:55%:wrap ) fzfHint=$'\nTAB toggle | ENTER proceed | ESC cancel' -fzfPrev1='xbps-query -R {1}; echo -e "\nReverse dependencies:"; \ - xbps-query -RX {1} | awk {print\(\"\ \ \ \ \"\$0\)}' -fzfPrev2='xbps-query -R {2}; echo -e "\nReverse dependencies:"; \ +fzfPrev1='xbps-query {1}; echo -e "\nReverse dependencies:"; \ + xbps-query -X {1} | awk {print\(\"\ \ \ \ \"\$0\)}' +fzfPrev2='xbps-query {2}; echo -e "\nReverse dependencies:"; \ + xbps-query -X {2} | awk {print\(\"\ \ \ \ \"\$0\)}' +fzfPrev2a='xbps-query -R {2}; echo -e "\nReverse dependencies:"; \ xbps-query -RX {2} | awk {print\(\"\ \ \ \ \"\$0\)}' # Install new packages: @@ -161,7 +163,7 @@ function instPkg() { awk '{print $1, $2}' | sort -u | fzf "${fzfOpt[@]}" \ - --preview "$fzfPrev2" \ + --preview "$fzfPrev2a" \ --header="Select packages to install.$fzfHint" | awk '{print $2}' )"