diff options
author | Jiri Moskovcak <jmoskovc@redhat.com> | 2010-01-05 12:55:27 +0100 |
---|---|---|
committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2010-01-05 12:55:27 +0100 |
commit | b36420d5a430889bc09a2769988510c4c854de5a (patch) | |
tree | 8ccc6c2297b44bc90bd31d95b258303f8f78c7a7 /src/Daemon | |
parent | 74083c1eb3d5cd88b15ae84fb72df03ee2160d63 (diff) | |
download | abrt-b36420d5a430889bc09a2769988510c4c854de5a.tar.gz abrt-b36420d5a430889bc09a2769988510c4c854de5a.tar.xz abrt-b36420d5a430889bc09a2769988510c4c854de5a.zip |
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
Diffstat (limited to 'src/Daemon')
-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 |