* Use repository mode for meta data preview only in install subroutine.
authorUrban Wallasch <urban.wallasch@freenet.de>
Sat, 30 May 2020 09:37:06 +0000 (11:37 +0200)
committerUrban Wallasch <urban.wallasch@freenet.de>
Sat, 30 May 2020 09:37:06 +0000 (11:37 +0200)
XbpsUI.sh

index 4e82a7276a557dba5c07ec0ad5da052bd5627a8f..00575446e81f664abe913344422992d363e4dd61 100755 (executable)
--- 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}'
         )"