[projects/pld-builder.new] - try to create also intermediate directories

draenog draenog at pld-linux.org
Thu Nov 29 19:57:59 CET 2012


commit fa7164658f153155dbb381d5558f083f48943576
Author: Kacper Kornet <draenog at pld-linux.org>
Date:   Thu Nov 29 18:56:10 2012 +0000

    - try to create also intermediate directories

 PLD_Builder/request.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/PLD_Builder/request.py b/PLD_Builder/request.py
index 195b1c8..4271d2d 100644
--- a/PLD_Builder/request.py
+++ b/PLD_Builder/request.py
@@ -232,7 +232,7 @@ class Batch:
         path = os.path.join(self._topdir, 'BUILD', 'tmp')
         if not os.path.isdir(path):
             try:
-                os.mkdir(path)
+                os.makedirs(path)
             except OSError as e:
                 log.error("Cannot create directory %s: %s" % (path, e.strerror))
                 raise
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/pld-builder.new.git/commitdiff/ce5859b931b6d041f513bda71d3532a8890302ea



More information about the pld-cvs-commit mailing list