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

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