diff options
author | Francois Pons <fpons@mandriva.com> | 2000-08-28 10:07:48 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2000-08-28 10:07:48 +0000 |
commit | 61cd9ccf52970380cd3abfecafefdd349730a914 (patch) | |
tree | 435b604025a841d5d1928b6db950a9df11323dab /urpmf | |
parent | feb44c212e2c856302edb8d0bc234cc209969c95 (diff) | |
download | urpmi-61cd9ccf52970380cd3abfecafefdd349730a914.tar urpmi-61cd9ccf52970380cd3abfecafefdd349730a914.tar.gz urpmi-61cd9ccf52970380cd3abfecafefdd349730a914.tar.bz2 urpmi-61cd9ccf52970380cd3abfecafefdd349730a914.tar.xz urpmi-61cd9ccf52970380cd3abfecafefdd349730a914.zip |
*** empty log message ***
Diffstat (limited to 'urpmf')
-rwxr-xr-x | urpmf | 14 |
1 files changed, 3 insertions, 11 deletions
@@ -1,7 +1,5 @@ #!/bin/sh -unalias ls 2>/dev/null - if [ "$#" -gt 1 ] || [ "$1" = "-h" ] || [ "$1" = "--help" ]; then echo "usage: rpmf [<file>]" 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 |