enabling case insensitive package searches
[feisty_meow.git] / scripts / system / list_packages.sh
index 60024c7515fa45091eeb4518ee947542da4777c8..d7317fbb6eecfbd30e28a96789a48d2c41da8802 100644 (file)
@@ -8,7 +8,7 @@ if [ -z "$*" ]; then
 else
   # we know the parameters are not empty, so we don't go with our
   # wildcard approach for listing the package names.
-  SEEK_PIECE=' grep $* '
+  SEEK_PIECE=' grep -i $* '
 fi
 
 if debian_like; then
@@ -16,14 +16,14 @@ if debian_like; then
   exit $?
 fi
 
-rpm_available="$(which rpm)"
+rpm_available="$(whichable rpm)"
 if [ ! -z "$rpm_available" ]; then
 #is that the right phrase for rpm?  somewhat forgotten.
   rpm -qa | eval $SEEK_PIECE
   exit $?
 fi
 
-yum_available="$(which yum)"
+yum_available="$(whichable yum)"
 if [ ! -z "$yum_available" ]; then
   yum list | eval $SEEK_PIECE
   exit $?