[Libreoffice-commits] core.git: bin/gbuild-to-ide

Niklas Johansson sleeping.pillow at gmail.com
Thu Jul 3 09:58:26 PDT 2014


 bin/gbuild-to-ide |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit aa7f272d747dfeb1c7e003b7db123fda688fd881
Author: Niklas Johansson <sleeping.pillow at gmail.com>
Date:   Thu Jul 3 17:55:34 2014 +0200

    Don't stop on os.makedirs when making vs2012-ide-integration
    
    At the moment it always stops on folders that already exists. See
    https://bugs.freedesktop.org/show_bug.cgi?id=70414#c18 and the following
    comments for example of the error messages that I face without this patch.
    
    Change-Id: I1a1f337872ce3a817d425ff10255e3ae9a73c1a2
    Reviewed-on: https://gerrit.libreoffice.org/10062
    Tested-by: Fridrich Strba <fridrich at documentfoundation.org>
    Reviewed-by: Fridrich Strba <fridrich at documentfoundation.org>

diff --git a/bin/gbuild-to-ide b/bin/gbuild-to-ide
index 91a3fcf..55bfa37 100755
--- a/bin/gbuild-to-ide
+++ b/bin/gbuild-to-ide
@@ -672,7 +672,9 @@ class VisualStudioIntegrationGenerator(IdeIntegrationGenerator):
 
     def write_project(self, project_path, target):
         # See info at http://blogs.msdn.com/b/visualstudio/archive/2010/05/14/a-guide-to-vcxproj-and-props-file-structure.aspx
-        os.makedirs(os.path.dirname(project_path), exist_ok = True)
+        folder = os.path.dirname(project_path)
+        if not os.path.exists(folder):
+            os.makedirs(folder)
         project_guid = str(uuid.uuid4()).upper()
         ns = 'http://schemas.microsoft.com/developer/msbuild/2003'
         ET.register_namespace('', ns)


More information about the Libreoffice-commits mailing list