summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Cohen <wcohen@redhat.com>2008-11-04 13:31:45 -0500
committerWilliam Cohen <wcohen@redhat.com>2008-11-04 13:31:45 -0500
commita6d742cb49a4e1408c9071a1e6338aeb0f152fbe (patch)
treec7d281f2197f77b8353fd3e67fd77f8b1f740f87
parent59d4675dca023f30aecfaa9a7836b6c75ed60029 (diff)
downloadsystemtap-steved-a6d742cb49a4e1408c9071a1e6338aeb0f152fbe.tar.gz
systemtap-steved-a6d742cb49a4e1408c9071a1e6338aeb0f152fbe.tar.xz
systemtap-steved-a6d742cb49a4e1408c9071a1e6338aeb0f152fbe.zip
Make stapprep.sh use all available debuginfo repositories.
-rwxr-xr-x[-rw-r--r--]doc/SystemTap_Beginners_Guide/en-US/extras/stapprep.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/doc/SystemTap_Beginners_Guide/en-US/extras/stapprep.sh b/doc/SystemTap_Beginners_Guide/en-US/extras/stapprep.sh
index ba909994..1b2d3f14 100644..100755
--- a/doc/SystemTap_Beginners_Guide/en-US/extras/stapprep.sh
+++ b/doc/SystemTap_Beginners_Guide/en-US/extras/stapprep.sh
@@ -1,6 +1,5 @@
#! /bin/bash
check_error() { if test $1 != 0; then echo $2; exit $1; fi }
-DEBUGINFOREPO="rhel-debuginfo"
if [ "$#" -lt 1 ]; then
UNAME=`uname -r` # determine the kernel running on the machine
@@ -26,7 +25,7 @@ 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
- yumdownloader --enablerepo=$DEBUGINFOREPO $NEEDED --destdir=$DIR
+ yumdownloader --enablerepo="*debuginfo*" $NEEDED --destdir=$DIR
check_error $? "problem downloading rpm(s) $NEEDED"
rpm --force -ivh $DIR/*.rpm
check_error $? "problem installing rpm(s) $NEEDED"