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

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