From 61cd9ccf52970380cd3abfecafefdd349730a914 Mon Sep 17 00:00:00 2001 From: Francois Pons Date: Mon, 28 Aug 2000 10:07:48 +0000 Subject: *** empty log message *** --- urpmf | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'urpmf') diff --git a/urpmf b/urpmf index 8246179c..7332f4da 100755 --- a/urpmf +++ b/urpmf @@ -1,7 +1,5 @@ #!/bin/sh -unalias ls 2>/dev/null - if [ "$#" -gt 1 ] || [ "$1" = "-h" ] || [ "$1" = "--help" ]; then echo "usage: rpmf []" exit 1 @@ -10,15 +8,9 @@ fi dir="/var/lib/urpmi" -if ls $dir/hdlist.*.gz >/dev/null 2>/dev/null; then - found=1 - gzip -dc $dir/hdlist.*.gz | hdlist2files - | grep -E "$1" -fi -if ls $dir/hdlist.*.cz2 >/dev/null 2>/dev/null; then - found=1 - bzip2 -dcq $dir/hdlist.*.cz2 | hdlist2files - | grep -E "$1" -fi -if [ "$found" != "1" ]; then +if /bin/ls $dir/hdlist.* >/dev/null 2>/dev/null; then + packdrake -c $dir/hdlist.* | hdlist2files - | grep -E "$1" +else echo "urpmi is not installed" exit 1 fi -- cgit v1.2.1