Commit a85a7185 authored by Olivier Sallou's avatar Olivier Sallou
Browse files

fix rebuild error bug #925568

parent 7ab5ac86
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
cnvkit (0.9.5-3) UNRELEASED; urgency=medium

  * Fix buster rebuilds (Closes: #925568)
    d/patches/controldir.patch

 -- Olivier Sallou <osallou@debian.org>  Wed, 27 Mar 2019 08:00:39 +0000

cnvkit (0.9.5-2) unstable; urgency=medium

  [ Jelmer Vernooij ]
+21 −0
Original line number Diff line number Diff line
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@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)
 
+1 −0
Original line number Diff line number Diff line
no-py-ext
python3compat.patch
spelling
controldir