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

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