[Notes] [Git][BuildStream/buildstream][master] _project.py: Adding FIXME comment to address #591 properly



Title: GitLab

Tristan Van Berkom pushed to branch master at BuildStream / buildstream

Commits:

1 changed file:

Changes:

  • buildstream/_project.py
    ... ... @@ -398,7 +398,13 @@ class Project():
    398 398
                     "Project requested format version {}, but BuildStream {}.{} only supports up until format version {}"
    
    399 399
                     .format(format_version, major, minor, BST_FORMAT_VERSION))
    
    400 400
     
    
    401
    -        # Check if project.conf contains name key field
    
    401
    +        # FIXME:
    
    402
    +        #
    
    403
    +        #   Performing this check manually in the absense
    
    404
    +        #   of proper support from _yaml.node_get(), this should
    
    405
    +        #   be removed in favor of a proper accessor function
    
    406
    +        #   from the _yaml module when #591 is fixed.
    
    407
    +        #
    
    402 408
             if self._project_conf.get('name') is None:
    
    403 409
                 raise LoadError(LoadErrorReason.INVALID_DATA,
    
    404 410
                                 "{}: project.conf does not contain expected key '{}'".format(projectfile, 'name'))
    



  • [Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]