[med-svn] [Git][med-team/qiime][master] relax-mkdir-calls.patch: new: fix FileExistsErrors.

Étienne Mollier (@emollier) gitlab at salsa.debian.org
Mon Dec 1 20:47:27 GMT 2025



Étienne Mollier pushed to branch master at Debian Med / qiime


Commits:
27befed9 by Étienne Mollier at 2025-12-01T20:46:15+01:00
relax-mkdir-calls.patch: new: fix FileExistsErrors.

- - - - -


2 changed files:

- + debian/patches/relax-mkdir-calls.patch
- debian/patches/series


Changes:

=====================================
debian/patches/relax-mkdir-calls.patch
=====================================
@@ -0,0 +1,28 @@
+Description: relax mkdir invocations.
+ This change fixes a sprawl of the following error during tests:
+ .
+        E           FileExistsError: [Errno 17] File exists: 'artifacts'
+Author: Étienne Mollier <emollier at debian.org>
+Forwarded: no
+Last-Update: 2025-12-01
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- qiime.orig/qiime2/core/archive/provenance.py
++++ qiime/qiime2/core/archive/provenance.py
+@@ -305,13 +305,13 @@
+         self.path = qiime2.core.path.ProvenancePath()
+ 
+         self.ancestor_dir = self.path / self.ANCESTOR_DIR
+-        self.ancestor_dir.mkdir()
++        self.ancestor_dir.mkdir(exist_ok=True)
+ 
+         self.action_dir = self.path / self.ACTION_DIR
+-        self.action_dir.mkdir()
++        self.action_dir.mkdir(exist_ok=True)
+ 
+         self.temp_annotations_dir = self.path / self.TEMP_ANNOTATIONS_DIR
+-        self.temp_annotations_dir.mkdir()
++        self.temp_annotations_dir.mkdir(exist_ok=True)
+ 
+     def add_ancestor(self, artifact):
+         other_path = artifact._archiver.provenance_dir


=====================================
debian/patches/series
=====================================
@@ -2,3 +2,4 @@ platformdirs
 # enable_decorator_5.patch
 #python3.10.patch
 #python3.12.patch  # doesn't work
+relax-mkdir-calls.patch



View it on GitLab: https://salsa.debian.org/med-team/qiime/-/commit/27befed988edf8ef2f421837f76fdbc9156c1f5e

-- 
View it on GitLab: https://salsa.debian.org/med-team/qiime/-/commit/27befed988edf8ef2f421837f76fdbc9156c1f5e
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20251201/4e986fbd/attachment-0001.htm>


More information about the debian-med-commit mailing list