--- trunk/apt-iselect 2004/07/27 11:51:10 4 +++ trunk/apt-iselect 2004/12/04 15:39:21 8 @@ -25,6 +25,7 @@ # 2003-10-09 allow multi-selection of packages to view details # 2003-11-13 fix for RedHat 9.0 mktemp bug suggested by Dobes Vandermeer # 2004-07-27 allow multi-selection of packages to install +# 2004-12-04 Add quick install options # # I know it's ugly, but it's still faster than aptitude :-) # @@ -95,6 +96,10 @@ echo >> $res2 cat $res | sed 's/^/{s}/' >> $res2 fi + if [ $nr -gt 0 ] ; then + echo >> $res2 + echo "{s:_quick_install_}Install all selected" >> $res2 + fi echo >> $res2 echo "Enter new apt-cache search {s:search=%[Search for]S}" >> $res2 } @@ -114,6 +119,9 @@ elif tmp=`grep search= <$sel 2>/dev/null` ; then apt_cache_search `echo $tmp | grep search= | cut -d= -f2` loop=1 + elif tmp=`grep -i ':_quick_install_' $sel` ; then + debs=`grep -v ':_quick_install_' $sel | cut -d: -f2 | cut -d" " -f1 | xargs echo` + do_sudo "Installing '$debs'" apt-get install $debs else # not search, find packages info