On 04/18/2013 04:08 PM, Jakub Filak wrote:
On Wednesday 17 of April 2013 15:28:39 Denys Vlasenko wrote:
Signed-off-by: Denys Vlasenko dvlasenk@redhat.com
src/plugins/abrt-action-ureport | 3 +--
I had to apply the following patch because reporter-ureport doesn't return 0 if problem was reported.
Can I push it with this change?
diff --git a/src/plugins/abrt-action-ureport b/src/plugins/abrt-action-ureport index 07686f4..b6ae6a2 100644 --- a/src/plugins/abrt-action-ureport +++ b/src/plugins/abrt-action-ureport @@ -60,7 +60,9 @@ if test ! -s core_backtrace; then } fi
-reporter-ureport && { +reporter-ureport +RET_CODE=$? +if [ $RET_CODE -eq 0 ] || [ $RET_CODE -eq 70 ]; then printf "%s" "$((UREPORTS + 1))" > ureports_counter
- exit 0
-}
- exit $RET_CODE
+fi
Yes, it looks good to me.