QMF generator doesn't build the directory tree on Windows
---------------------------------------------------------
Key: QPID-1407
URL: https://issues.apache.org/jira/browse/QPID-1407
Project: Qpid
Issue Type: Bug
Components: Code Generator
Environment: Windows
Reporter: Steve Huston
Fix For: M4
The qpid/cpp/managementgen/qmf/generate.py code doesn't create the needed
subdirectory tree for generated code the first time it's run on Windows. The
reason is that the os.stat() function returns a different error for Windows
than for Linux if the dir doesn't exist.
This patch fixes it:
Index: qmf/generate.py
===================================================================
--- qmf/generate.py (revision 708607)
+++ qmf/generate.py (working copy)
@@ -166,7 +166,7 @@
try:
mode = os.stat (path)[ST_MODE]
except OSError, (err,text):
- if err == ENOENT:
+ if err == ENOENT or err == ESRCH:
exists = False
else:
raise
Ok to commit this?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.