src/eric7/Plugins/VcsPlugins/vcsSubversion/subversion.py

branch
eric7
changeset 10403
ea3320d5e8e9
parent 10373
093dcebe5ecb
child 10438
4cd7e5a8b3cf
--- a/src/eric7/Plugins/VcsPlugins/vcsSubversion/subversion.py	Mon Dec 11 15:11:32 2023 +0100
+++ b/src/eric7/Plugins/VcsPlugins/vcsSubversion/subversion.py	Tue Dec 12 09:35:39 2023 +0100
@@ -227,7 +227,7 @@
                 os.chdir(os.path.dirname(project.ppath))
                 cwdIsPpath = True
             tmpProjectDir = "{0}_tmp".format(project.ppath)
-            shutil.rmtree(tmpProjectDir, True)
+            shutil.rmtree(tmpProjectDir, ignore_errors=True)
             os.rename(project.ppath, tmpProjectDir)
             os.makedirs(project.ppath)
             self.vcsCheckout(vcsDataDict, project.ppath)
@@ -252,7 +252,7 @@
                     cwdIsPpath = True
                 else:
                     cwdIsPpath = False
-                shutil.rmtree(project.ppath, True)
+                shutil.rmtree(project.ppath, ignore_errors=True)
                 os.rename(tmpProjectDir, project.ppath)
                 project.setProjectData("None", dataKey="VCS")
                 project.vcs = None
@@ -260,7 +260,7 @@
                 project.saveProject()
                 project.closeProject()
                 return
-            shutil.rmtree(tmpProjectDir, True)
+            shutil.rmtree(tmpProjectDir, ignore_errors=True)
             project.closeProject(noSave=True)
             project.openProject(pfn)
 
@@ -309,7 +309,7 @@
                 shutil.copytree(projectDir, os.path.join(tmpDir, project))
         except OSError:
             if os.path.isdir(tmpDir):
-                shutil.rmtree(tmpDir, True)
+                shutil.rmtree(tmpDir, ignore_errors=True)
             return False, False
 
         args = []
@@ -330,7 +330,7 @@
                 dia.exec()
             status = dia.normalExit()
 
-        shutil.rmtree(tmpDir, True)
+        shutil.rmtree(tmpDir, ignore_errors=True)
         return status, False
 
     def vcsCheckout(self, vcsDataDict, projectDir, noDialog=False):

eric ide

mercurial