diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-05-04 16:51:10 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-05-04 16:51:10 +0200 |
commit | b32d7f503c26a013541024efe1cf08e8dfc1a257 (patch) | |
tree | a839bfcf1b59306393aac41b35a4de5a5f8c5889 /src/Daemon/abrt-debuginfo-install | |
parent | 3d6f441673de51cdd419cd2fd74f4e22f47b0617 (diff) | |
download | abrt-b32d7f503c26a013541024efe1cf08e8dfc1a257.tar.gz abrt-b32d7f503c26a013541024efe1cf08e8dfc1a257.tar.xz abrt-b32d7f503c26a013541024efe1cf08e8dfc1a257.zip |
abrt-debuginfo-install: use -C: yum -C repolist all
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'src/Daemon/abrt-debuginfo-install')
-rwxr-xr-x | src/Daemon/abrt-debuginfo-install | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Daemon/abrt-debuginfo-install b/src/Daemon/abrt-debuginfo-install index 84d24469..c1155246 100755 --- a/src/Daemon/abrt-debuginfo-install +++ b/src/Daemon/abrt-debuginfo-install @@ -302,8 +302,9 @@ $debug && echo "build_ids:$build_ids" # Prepare list of repos to use. # When we look for debuginfo we need only -debuginfo* repos, we can disable the rest # and thus make it faster. +# (Without -C, yum for some reason wants to talk to repos! If one is down, it becomes S..L..O..W) yum_repo_opts="'--disablerepo=*'" -for enabled_repo in `LANG=C yum repolist all | grep 'enabled:' | cut -f1 -d' ' | grep -v -- '-debuginfo'`; do +for enabled_repo in `LANG=C yum -C repolist all | grep 'enabled:' | cut -f1 -d' ' | grep -v -- '-debuginfo'`; do yum_repo_opts="$yum_repo_opts '--enablerepo=${enabled_repo}-debuginfo*'" done |