mirror of
https://github.com/sbopkg/sbopkg
synced 2024-11-12 21:10:21 +03:00
add check to make sure pkg is still in OUTPUT before installing; provide a bit of explanation about 'inst:' in the search box
This commit is contained in:
parent
007c21b423
commit
0f98cf0e7e
@ -857,6 +857,7 @@ s/\$.*/unknown/")
|
|||||||
process_queue ;;
|
process_queue ;;
|
||||||
Install)
|
Install)
|
||||||
SBOPKGINSTALLOUTPUT=$TMP/sbopkg_install_output
|
SBOPKGINSTALLOUTPUT=$TMP/sbopkg_install_output
|
||||||
|
if [ ! -e $OUTPUT/$IPACKAGE ]; then continue; fi
|
||||||
install_package $IPACKAGE | tee $SBOPKGINSTALLOUTPUT
|
install_package $IPACKAGE | tee $SBOPKGINSTALLOUTPUT
|
||||||
read -n 1 -p "Press any key to continue."
|
read -n 1 -p "Press any key to continue."
|
||||||
if [ "$KEEPLOG" = "YES" ]; then
|
if [ "$KEEPLOG" = "YES" ]; then
|
||||||
@ -2803,7 +2804,9 @@ main_search() {
|
|||||||
dialog --title "Search" --ok-label "PKG" \
|
dialog --title "Search" --ok-label "PKG" \
|
||||||
--extra-button --extra-label "String" \
|
--extra-button --extra-label "String" \
|
||||||
--help-button --inputbox \
|
--help-button --inputbox \
|
||||||
"Enter your search term..." 8 39 2> $TERM_FILE
|
"Enter your search term (prefix your search with 'inst:' \
|
||||||
|
to narrow search to installed packages)..." 10 39 \
|
||||||
|
2> $TERM_FILE
|
||||||
case $? in # 0=PKG 3=String 1=Cancel 2=Help
|
case $? in # 0=PKG 3=String 1=Cancel 2=Help
|
||||||
3) STRING=yes ;;
|
3) STRING=yes ;;
|
||||||
2) dialog --title "Search Help" --msgbox \
|
2) dialog --title "Search Help" --msgbox \
|
||||||
|
Loading…
Reference in New Issue
Block a user