4fc9310
commit 87cc9488bd08a5f17318ddd70cbfcdb4182f8b16
4fc9310
Author: Jiri Moskovcak <jmoskovc@redhat.com>
4fc9310
Date:   Thu Mar 11 23:50:47 2010 +0100
4fc9310
4fc9310
    minor fix in abrt-debuginfo-install to make it work with yum >= 3.2.26
4fc9310
    
4fc9310
    - yum repolist has different output, so it needs to bu run
4fc9310
      with additional parameter 'all'
4fc9310
4fc9310
diff --git a/src/Daemon/abrt-debuginfo-install b/src/Daemon/abrt-debuginfo-install
4fc9310
index 0d9401b..521d42a 100755
4fc9310
--- a/src/Daemon/abrt-debuginfo-install
4fc9310
+++ b/src/Daemon/abrt-debuginfo-install
4fc9310
@@ -303,7 +303,7 @@ $debug && echo "build_ids:$build_ids"
4fc9310
 # When we look for debuginfo we need only -debuginfo* repos, we can disable the rest
4fc9310
 # and thus make it faster.
4fc9310
 yum_repo_opts="'--disablerepo=*'"
4fc9310
-for enabled_repo in `yum repolist | grep 'enabled:' | cut -f1 -d' ' | grep -v -- '-debuginfo'`; do
4fc9310
+for enabled_repo in `yum repolist all | grep 'enabled:' | cut -f1 -d' ' | grep -v -- '-debuginfo'`; do
4fc9310
     yum_repo_opts="$yum_repo_opts '--enablerepo=${enabled_repo}-debuginfo*'"
4fc9310
 done
4fc9310