You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Ted Ross (JIRA)" <qp...@incubator.apache.org> on 2008/10/28 22:56:46 UTC

[jira] Commented: (QPID-1407) QMF generator doesn't build the directory tree on Windows

    [ https://issues.apache.org/jira/browse/QPID-1407?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12643344#action_12643344 ] 

Ted Ross commented on QPID-1407:
--------------------------------

Steve,

Go ahead and commit.  Thanks for the fix.

-Ted


> 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.