/[scripts]/trunk/apt-iselect
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/apt-iselect

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4 by dpavlin, Tue Jul 27 11:51:10 2004 UTC revision 8 by dpavlin, Sat Dec 4 15:39:21 2004 UTC
# Line 25  Line 25 
25  # 2003-10-09 allow multi-selection of packages to view details  # 2003-10-09 allow multi-selection of packages to view details
26  # 2003-11-13 fix for RedHat 9.0 mktemp bug suggested by Dobes Vandermeer  # 2003-11-13 fix for RedHat 9.0 mktemp bug suggested by Dobes Vandermeer
27  # 2004-07-27 allow multi-selection of packages to install  # 2004-07-27 allow multi-selection of packages to install
28    # 2004-12-04 Add quick install options
29  #  #
30  # I know it's ugly, but it's still faster than aptitude :-)  # I know it's ugly, but it's still faster than aptitude :-)
31  #  #
# Line 95  apt_cache_search() { Line 96  apt_cache_search() {
96                  echo >> $res2                  echo >> $res2
97                  cat $res | sed 's/^/{s}/' >> $res2                  cat $res | sed 's/^/{s}/' >> $res2
98          fi          fi
99            if [ $nr -gt 0 ] ; then
100                    echo >> $res2
101                    echo "{s:_quick_install_}Install all selected" >> $res2
102            fi
103          echo >> $res2          echo >> $res2
104          echo "Enter new apt-cache search {s:search=%[Search for]S}" >> $res2          echo "Enter new apt-cache search {s:search=%[Search for]S}" >> $res2
105  }  }
# Line 114  while [ $loop = 1 ] ; do Line 119  while [ $loop = 1 ] ; do
119          elif tmp=`grep search= <$sel 2>/dev/null` ; then          elif tmp=`grep search= <$sel 2>/dev/null` ; then
120                  apt_cache_search `echo $tmp | grep search= | cut -d= -f2`                  apt_cache_search `echo $tmp | grep search= | cut -d= -f2`
121                  loop=1                  loop=1
122            elif tmp=`grep -i ':_quick_install_' $sel` ; then
123                    debs=`grep -v ':_quick_install_' $sel | cut -d: -f2 | cut -d" " -f1 | xargs echo`
124                    do_sudo "Installing '$debs'" apt-get install $debs
125          else          else
126                  # not search, find packages info                  # not search, find packages info
127    

Legend:
Removed from v.4  
changed lines
  Added in v.8

  ViewVC Help
Powered by ViewVC 1.1.26