In qooxdoo 0.6.6 I'm running into a problem in "make build" when the
destination directory doesn't exist.  For some reason, on FreeBSD 6.2
and Python 2.4.4 it's having problems normalizing "paths/../with/../dots"
that are used in your automated build.  This results in errors similar
to the following.  Attached is a patch.

    - Found 1 resources in org.htsql.app.BuildHookApp
      - Copying ../resource [org.testproject]
    Traceback (most recent call last):
      File "./qooxdoo/frontend/framework/tool/generator.py", line 1077, in ?
        main()
      File "./qooxdoo/frontend/framework/tool/generator.py", line 331, in main
        argparser(sys.argv[1:])
      File "./qooxdoo/frontend/framework/tool/generator.py", line 316, in 
argparser
        execute(fileDb, moduleDb, options, options.packageId)
      File "./qooxdoo/frontend/framework/tool/generator.py", line 910, in 
execute
        resources.copy(options, sortedIncludeList, fileDb)
      File 
"/usr/home/cce/testproject/trunk/client/qooxdoo/frontend/framework/tool/modules/resources.py",
 line 154, in copy
        os.makedirs(itemDestDir)
      File "/usr/local/lib/python2.4/os.py", line 156, in makedirs
        makedirs(head, mode)
      File "/usr/local/lib/python2.4/os.py", line 156, in makedirs
        makedirs(head, mode)
      File "/usr/local/lib/python2.4/os.py", line 159, in makedirs
        mkdir(name, mode)
    OSError: [Errno 17] File exists: 
'../testproject/client/resource/testproject/..'
    gmake: *** [exec-script-build] Error 1

As usual, thank you for the wonderful library.

Clark
Index: qooxdoo/frontend/framework/tool/modules/resources.py
===================================================================
--- qooxdoo/frontend/framework/tool/modules/resources.py	(revision 9288)
+++ qooxdoo/frontend/framework/tool/modules/resources.py	(working copy)
@@ -19,6 +19,7 @@
 ################################################################################
 
 import os, shutil, re
+from os.path import normpath
 import config, textutil
 
 
@@ -145,8 +146,8 @@
                 continue
 
             # Generate destination directory and file path
-            itemDestDir = os.path.join(destinationDirectory, itemRelDir)
-            itemDestPath = os.path.join(itemDestDir, itemName)
+            itemDestDir = normpath(os.path.join(destinationDirectory, itemRelDir))
+            itemDestPath = normpath(os.path.join(itemDestDir, itemName))
 
             # Check/Create destination directory
             if not os.path.exists(itemDestDir):
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to