4fc9310
commit 9d109b568bbbdee069bb5dfcbca3c259a74e98a8
4fc9310
Author: Denys Vlasenko <vda.linux@googlemail.com>
4fc9310
Date:   Wed Mar 3 11:45:33 2010 +0100
4fc9310
4fc9310
    abrt-debuginfo-install: remove -R2 from yum! it's not "anti-yum-lock" option!
4fc9310
    
4fc9310
    Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
4fc9310
4fc9310
diff --git a/src/Daemon/abrt-debuginfo-install b/src/Daemon/abrt-debuginfo-install
4fc9310
index 3bb9c41..1b6af74 100755
4fc9310
--- a/src/Daemon/abrt-debuginfo-install
4fc9310
+++ b/src/Daemon/abrt-debuginfo-install
4fc9310
@@ -146,11 +148,12 @@ print_package_names() {
4fc9310
     # when we look for debuginfo we need only -debuginfo* repos, so we can disable the rest and thus make it faster
4fc9310
     # also we want only fedora repositories, because abrt won't work for other packages anyway
4fc9310
     # --showduplicates: do not just show the latest package
4fc9310
-    # -R2: wait two minutes max (hopefully this prevents infinite hang on yum lock)
4fc9310
-    local cmd="yum $yumopts '--disablerepo=*' '--enablerepo=fedora-debuginfo*' '--enablerepo=updates-debuginfo*' --showduplicates -R2 --quiet provides $missing_debuginfo_files"
4fc9310
+    # (tried to use -R2 to abort on stuck yum lock but -R is not about that)
4fc9310
+    local cmd="yum $yumopts '--disablerepo=*' '--enablerepo=fedora-debuginfo*' '--enablerepo=updates-debuginfo*' --showduplicates --quiet provides $missing_debuginfo_files"
4fc9310
     echo "$cmd" >"yum_provides.$1.OUT"
4fc9310
+    $debug && echo "Running: $cmd" >&2
4fc9310
     # eval is needed to strip away ''s; cant remove them above and just use
4fc9310
-    # $cmd, that would perform globbing on '*'
4fc9310
+    # unquoted $cmd, that would perform globbing on '*'
4fc9310
     local yum_provides_OUT="`eval $cmd 2>&1`"
4fc9310
     local err=$?
4fc9310
     printf "%s\nyum exitcode:%s\n" "$yum_provides_OUT" $err >>"yum_provides.$1.OUT"