From: Michael Tremer Date: Thu, 20 Jul 2023 10:10:26 +0000 (+0000) Subject: backend: Avoid removing the tmp directory X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fad0dbaffbc99cc4837c8636b8f8545c44d65947;p=pbs.git backend: Avoid removing the tmp directory Signed-off-by: Michael Tremer --- diff --git a/src/buildservice/__init__.py b/src/buildservice/__init__.py index 1bb79ca7..4517a780 100644 --- a/src/buildservice/__init__.py +++ b/src/buildservice/__init__.py @@ -378,7 +378,7 @@ class Backend(object): path = os.path.dirname(path) # Break if we reached the base path - if path == self.basepath: + if path == self.basepath or path == self.path("tmp"): break # Call rmdir()