[med-svn] [Git][med-team/cnvkit][master] fix rebuild error bug #925568

Olivier Sallou gitlab at salsa.debian.org
Wed Mar 27 08:10:45 GMT 2019



Olivier Sallou pushed to branch master at Debian Med / cnvkit


Commits:
a85a7185 by Olivier Sallou at 2019-03-27T08:03:04Z
fix rebuild error bug #925568

- - - - -


3 changed files:

- debian/changelog
- + debian/patches/controldir
- debian/patches/series


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,10 @@
+cnvkit (0.9.5-3) UNRELEASED; urgency=medium
+
+  * Fix buster rebuilds (Closes: #925568)
+    d/patches/controldir.patch
+
+ -- Olivier Sallou <osallou at debian.org>  Wed, 27 Mar 2019 08:00:39 +0000
+
 cnvkit (0.9.5-2) unstable; urgency=medium
 
   [ Jelmer Vernooij ]


=====================================
debian/patches/controldir
=====================================
@@ -0,0 +1,21 @@
+Subject: do not create dir if it exists
+Description: command tries to create an output dir during tests, even if it
+ already exists, raising an error. Skip creation if already present
+Author: Olivier Sallou <osallou at debian.org>
+Bug: 925568
+Forwaded: no
+Last-Updated: 2019-03-27
+--- a/cnvlib/commands.py
++++ b/cnvlib/commands.py
+@@ -1365,8 +1365,9 @@
+                             'anti' if 'antitarget' in fname else ''))
+         if args.output_dir:
+             if not os.path.isdir(args.output_dir):
+-                os.mkdir(args.output_dir)
+-                logging.info("Created directory %s", args.output_dir)
++                if not os.path.exists(args.output_dir):
++                    os.mkdir(args.output_dir)
++                    logging.info("Created directory %s", args.output_dir)
+             outfname = os.path.join(args.output_dir, outfname)
+         tabio.write(garr, outfname)
+ 


=====================================
debian/patches/series
=====================================
@@ -1,3 +1,4 @@
 no-py-ext
 python3compat.patch
 spelling
+controldir



View it on GitLab: https://salsa.debian.org/med-team/cnvkit/commit/a85a7185b846c7488401e5ebf3c39bd275b27379

-- 
View it on GitLab: https://salsa.debian.org/med-team/cnvkit/commit/a85a7185b846c7488401e5ebf3c39bd275b27379
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/20190327/2b2484eb/attachment-0001.html>


More information about the debian-med-commit mailing list