From f8736d251e4291e414bd0bdaca2346cd7ef265dd Mon Sep 17 00:00:00 2001 From: Glenn L McGrath Date: Tue, 26 Jun 2001 01:19:34 +0000 Subject: rpm2cpio applet by Laurence Anderson --- examples/unrpm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/unrpm') diff --git a/examples/unrpm b/examples/unrpm index 9ab37be0a..376286a6f 100644 --- a/examples/unrpm +++ b/examples/unrpm @@ -29,7 +29,7 @@ exist type more >/dev/null 2>&1 && pager=more type less >/dev/null 2>&1 && pager=less [ "$pager" = "" ] && echo "No pager found!" && exit -(echo -e "\nPress enter to scroll, q to Quit!\n" ; rpmunpack < $rpm | gzip -dc | cpio -tv --quiet) | $pager +(echo -e "\nPress enter to scroll, q to Quit!\n" ; rpm2cpio $rpm | cpio -tv --quiet) | $pager exit elif [ "$1" = "-x" ]; then exist @@ -39,7 +39,7 @@ elif [ ! -d "$3" ]; then echo "No such directory $3!" exit fi -rpmunpack < $rpm | gzip -d | (umask 0 ; cd $3 ; cpio -idmuv) || exit +rpm2cpio $rpm | (umask 0 ; cd $3 ; cpio -idmuv) || exit echo echo "Extracted $rpm to $3!" exit -- cgit v1.2.3