Blame SOURCES/0283-vmcore-remove-original-vmcore-file-in-the-last-step.patch

baab13
From e29d4d264d5ccc53fc0f4cc18ac477395a82af10 Mon Sep 17 00:00:00 2001
baab13
From: Jakub Filak <jfilak@redhat.com>
baab13
Date: Thu, 27 Nov 2014 14:30:48 +0100
baab13
Subject: [PATCH] vmcore: remove original vmcore file in the last step
baab13
baab13
Signed-off-by: Jakub Filak <jfilak@redhat.com>
baab13
---
baab13
 src/hooks/abrt_harvest_vmcore.py.in | 12 ++++++------
baab13
 1 file changed, 6 insertions(+), 6 deletions(-)
baab13
baab13
diff --git a/src/hooks/abrt_harvest_vmcore.py.in b/src/hooks/abrt_harvest_vmcore.py.in
baab13
index 6b2719e..990a2b1 100644
baab13
--- a/src/hooks/abrt_harvest_vmcore.py.in
baab13
+++ b/src/hooks/abrt_harvest_vmcore.py.in
baab13
@@ -278,12 +278,6 @@ def harvest_vmcore():
baab13
             shutil.rmtree(destdirnew)
baab13
             continue
baab13
 
baab13
-        if copyvmcore == 'no':
baab13
-            try:
baab13
-                shutil.rmtree(f_full)
baab13
-            except OSError:
baab13
-                sys.stderr.write("Unable to delete '%s'. Ignoring\n" % f_full)
baab13
-
baab13
         try:
baab13
             # Let abrtd know what type of problem it is:
baab13
             create_abrtd_info(destdirnew)
baab13
@@ -303,6 +297,12 @@ def harvest_vmcore():
baab13
         # Get rid of  the .new suffix
baab13
         shutil.move(destdirnew, destdir)
baab13
 
baab13
+        if copyvmcore == 'no':
baab13
+            try:
baab13
+                shutil.rmtree(f_full)
baab13
+            except OSError:
baab13
+                sys.stderr.write("Unable to delete '%s'. Ignoring\n" % f_full)
baab13
+
baab13
         problem.notify_new_path(destdir)
baab13
 
baab13
 
baab13
-- 
baab13
1.8.3.1
baab13