#!/bin/sh # NOTE TO MANTAINERS: when you add a string that is displayed to # the user use $ECHO not echo (that will use gettext if available) # i18n support ECHO=`which gettext 2> /dev/null` [ -z "$ECHO" ] && ECHO="echo" || ECHO="$ECHO -s" TEXTDOMAIN="urpmi" if [ "$#" -gt 1 ] || [ "$1" = "-h" ] || [ "$1" = "--help" ]; then $ECHO "usage: rpmf []" exit 1 fi dir="/var/lib/urpmi" if /bin/ls $dir/hdlist.* >/dev/null 2>/dev/null; then parsehdlist --files --quiet $dir/hdlist.* | grep -E "$1" else $ECHO "urpmi is not installed" exit 1 fi