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