[med-svn] [Git][med-team/qiime][master] Do not fail mkdir if directory just exists
Andreas Tille (@tille)
gitlab at salsa.debian.org
Sat Feb 15 10:30:12 GMT 2025
Andreas Tille pushed to branch master at Debian Med / qiime
Commits:
5f3ffdea by Andreas Tille at 2025-02-15T11:29:56+01:00
Do not fail mkdir if directory just exists
- - - - -
3 changed files:
- debian/changelog
- + debian/patches/mkdir_exists_ok.patch
- debian/patches/series
Changes:
=====================================
debian/changelog
=====================================
@@ -1,15 +1,16 @@
-qiime (2024.10.1-1.1) UNRELEASED; urgency=medium
+qiime (2024.10.1-1) UNRELEASED; urgency=medium
[ Andreas Tille ]
* New upstream version
* Standards-Version: 4.7.0 (routine-update)
* Drop python3.11 from explicit Test-Depends
+ * Do not fail mkdir if directory just exists
[ Emmanuel Arias ]
* d/patches/replace-crypt-module-by-hashlib.patch: Add patch to remove
crypt module from tests (Closes: #1084668).
- -- Emmanuel Arias <eamanu at debian.org> Mon, 09 Dec 2024 09:49:10 -0300
+ -- Andreas Tille <tille at debian.org> Sat, 15 Feb 2025 11:29:32 +0100
qiime (2024.5.0-1) unstable; urgency=medium
=====================================
debian/patches/mkdir_exists_ok.patch
=====================================
@@ -0,0 +1,19 @@
+Author: Andreas Tille <tille at debian.org>
+Last-Update: 2025-02-15
+Description: Do not fail mkdir if directory just exists
+
+--- a/qiime2/core/archive/provenance.py
++++ b/qiime2/core/archive/provenance.py
+@@ -303,10 +303,10 @@ class ProvenanceCapture:
+ 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)
+
+ def add_ancestor(self, artifact):
+ other_path = artifact._archiver.provenance_dir
=====================================
debian/patches/series
=====================================
@@ -5,3 +5,5 @@ python3.10.patch
#python3.12.patch # doesn't work
configparser.patch
replace-crypt-module-by-hashlib.patch
+mkdir_exists_ok.patch
+OutPath.patch
View it on GitLab: https://salsa.debian.org/med-team/qiime/-/commit/5f3ffdea76b68c2b26d0c2d299507d8bc90d1657
--
View it on GitLab: https://salsa.debian.org/med-team/qiime/-/commit/5f3ffdea76b68c2b26d0c2d299507d8bc90d1657
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/20250215/4fcecc98/attachment-0001.htm>
More information about the debian-med-commit
mailing list