From b36420d5a430889bc09a2769988510c4c854de5a Mon Sep 17 00:00:00 2001 From: Jiri Moskovcak Date: Tue, 5 Jan 2010 12:55:27 +0100 Subject: speed optimalization of abrt-debuginfo-install - abrt can't handle(report) bugs in non-fedora packages, so we can use only Fedora repositories when looking for debuginfo packages which makes the whole process faster --- src/Daemon/abrt-debuginfo-install | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src') 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 -- cgit