[elbe-devel] [PATCH v2 1/4] elbepack: efilesystem: always clean up after excursions

Thomas Weißschuh thomas.weissschuh at linutronix.de
Fri Apr 26 17:20:44 CEST 2024


There is no point in leaving the .orig files around.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
 elbepack/efilesystem.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/elbepack/efilesystem.py b/elbepack/efilesystem.py
index 93b090946752..0068b146ae3d 100644
--- a/elbepack/efilesystem.py
+++ b/elbepack/efilesystem.py
@@ -235,8 +235,8 @@ class Excursion:
     def end(self, rfs):
         if self.origin not in rfs.protect_from_excursion:
             self._undo_excursion(rfs)
-        else:
-            self._del_rfs_file(self._saved_to(), rfs)
+
+        self._del_rfs_file(self._saved_to(), rfs)
 
     def _saved_to(self):
         return f'{self.origin}.orig'

-- 
2.44.0



More information about the elbe-devel mailing list