diff options
Diffstat (limited to 'src/Daemon/abrt-debuginfo-install')
-rwxr-xr-x | src/Daemon/abrt-debuginfo-install | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/Daemon/abrt-debuginfo-install b/src/Daemon/abrt-debuginfo-install index dcd3addb..cfae49a1 100755 --- a/src/Daemon/abrt-debuginfo-install +++ b/src/Daemon/abrt-debuginfo-install @@ -143,7 +143,9 @@ print_package_names() { else echo "`count_words $missing_debuginfo_files` missing debuginfos, getting package list from repositories" >&2 fi - local cmd="yum $yumopts --enablerepo=*debuginfo* --quiet provides $missing_debuginfo_files" + # when we look for debuginfo we need only -debuginfo* repos, so we can disable the rest and thus make it faster + # also we want only fedora repositories, because abrt won't work for other packages anyway + local cmd="yum $yumopts --disablerepo=* --enablerepo=fedora-debuginfo* --enablerepo=updates-debuginfo* --quiet provides $missing_debuginfo_files" echo "$cmd" >"yum_provides.$1.OUT" local yum_provides_OUT="`$cmd 2>&1`" local err=$? @@ -190,7 +192,9 @@ download_packages() { for pkg in $packages; do echo "Download $i/$num_packages: $pkg" echo "Download $i/$num_packages: $pkg" >>yumdownloader.OUT - yumdownloader '--enablerepo=*debuginfo*' --quiet $pkg >>yumdownloader.OUT 2>&1 + # we can't handle packages from non Fedora repos, so we look and download only + # from Fedora repos which makes it faster + yumdownloader --disablerepo="*" --enablerepo="fedora-debuginfo*" --enablerepo="updates-debuginfo*" --quiet $pkg >>yumdownloader.OUT 2>&1 err=$? echo "exitcode:$err" >>yumdownloader.OUT echo >>yumdownloader.OUT |