summaryrefslogtreecommitdiffstats
path: root/doc/SystemTap_Beginners_Guide
diff options
context:
space:
mode:
authorMark Wielaard <mjw@redhat.com>2009-07-28 11:57:27 +0200
committerMark Wielaard <mjw@redhat.com>2009-07-28 11:59:20 +0200
commit601f4c5a4be6f5a52b56fd8620faf765b63b1a07 (patch)
tree4fed3d82610b9422e0b6b92792e373342d7dfb09 /doc/SystemTap_Beginners_Guide
parent364ad890e341bb60ae169af69933a382d4bf9f81 (diff)
downloadsystemtap-steved-601f4c5a4be6f5a52b56fd8620faf765b63b1a07.tar.gz
systemtap-steved-601f4c5a4be6f5a52b56fd8620faf765b63b1a07.tar.xz
systemtap-steved-601f4c5a4be6f5a52b56fd8620faf765b63b1a07.zip
Install yum-utils when yumdownloader is missing first in stapprep.sh.
* doc/SystemTap_Beginners_Guide/en-US/extras/stapprep.sh: Check whether yumdownloader is already available and install yum-utils if not.
Diffstat (limited to 'doc/SystemTap_Beginners_Guide')
-rwxr-xr-xdoc/SystemTap_Beginners_Guide/en-US/extras/stapprep.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/SystemTap_Beginners_Guide/en-US/extras/stapprep.sh b/doc/SystemTap_Beginners_Guide/en-US/extras/stapprep.sh
index 6905c9cc..3c6bf785 100755
--- a/doc/SystemTap_Beginners_Guide/en-US/extras/stapprep.sh
+++ b/doc/SystemTap_Beginners_Guide/en-US/extras/stapprep.sh
@@ -26,6 +26,10 @@ if [ "$NEEDED" != "" ]; then
echo -e "Need to install the following packages:\n$NEEDED"
if [ `id -u` = "0" ]; then #attempt download and install
DIR=`mktemp -d` || exit 1
+ if [ ! -x /usr/bin/yumdownloader ]; then
+ echo "Need to first install yum-utils for yumdownloader"
+ yum install -y yum-utils
+ fi
yumdownloader --enablerepo="*debuginfo*" $NEEDED --destdir=$DIR
check_error $? "problem downloading rpm(s) $NEEDED"
rpm --force -ivh $DIR/*.rpm