From f041fbb500d8d8e272e72a87feccb8d8843f1204 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 4 Jan 2000 00:02:06 +0000 Subject: no_comment --- urpmf | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 urpmf (limited to 'urpmf') diff --git a/urpmf b/urpmf new file mode 100755 index 00000000..9263537f --- /dev/null +++ b/urpmf @@ -0,0 +1,19 @@ +#!/bin/sh + +if [ "$#" -gt 1 ] || [ "$1" = "-h" ] || [ "$1" = "--help" ]; then + echo "usage: rpmf []" + exit 1 +fi + +hdlist="/var/lib/urpmi/hdlist.*.gz" + +if ! ls $hdlist >/dev/null 2>/dev/null; then + echo "urpmi is not installed" + exit 1 +fi + +if [ -z "$1" ]; then + gzip -dc $hdlist | hdlist2files - +else + gzip -dc $hdlist | hdlist2files - | grep $1 +fi -- cgit v1.2.1