[ABRT PATCH] fix debuginfo installer expecting user input from a pipe - closes #696

Petr Kubat pkubat at redhat.com
Tue Sep 10 12:57:01 UTC 2013


The debuginfo installer currently expects both build-ids and user input from a pipe with analaze-core, when run from an UI.
We need to change it so that it passes the build-ids through a temporary file and only uses stdin to communicate with the user.

Signed-off-by: Petr Kubat <pkubat at redhat.com>
---
 src/plugins/abrt-action-analyze-ccpp-local | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/plugins/abrt-action-analyze-ccpp-local b/src/plugins/abrt-action-analyze-ccpp-local
index 0b02684..ef0976e 100755
--- a/src/plugins/abrt-action-analyze-ccpp-local
+++ b/src/plugins/abrt-action-analyze-ccpp-local
@@ -24,10 +24,11 @@ if $INSTALL_DI; then
     # debuginfo install fail even for root.
     # Therefore, if we are root, we don't use the wrapper.
     if [ x"`id -u`" = x"0" ]; then
-        abrt-action-analyze-core --core=coredump | abrt-action-install-debuginfo --ids=- --size_mb=4096
+        abrt-action-analyze-core --core=coredump -o build_ids && abrt-action-install-debuginfo --size_mb=4096
     else
-        abrt-action-analyze-core --core=coredump | /usr/libexec/abrt-action-install-debuginfo-to-abrt-cache --ids=- --size_mb=4096
+        abrt-action-analyze-core --core=coredump -o build_ids && /usr/libexec/abrt-action-install-debuginfo-to-abrt-cache --size_mb=4096
     fi
+    rm -f build_ids
 fi
 
 if [ $? = 0 ]; then
-- 
1.8.3.1



More information about the Crash-catcher mailing list