Skip to content
This repository was archived by the owner on Oct 1, 2025. It is now read-only.
This repository was archived by the owner on Oct 1, 2025. It is now read-only.

Comment parsing of config_initialize.txt does not allow #-preceding whitespace. #8

Description

@awwad

If I correctly understand, then if a line in config_initialize.txt (the dependencies specification for a build) is intended as a comment, but the # is not the very first character (e.g. if the comment line is indented), it will not be properly recognized as a comment line and may be parsed incorrectly. It would fall through this check: https://github.com/SeattleTestbed/buildscripts/blob/master/initialize.py#L73
If we want to avoid that issue, we can simply do this instead of the existing line:

  if line.strip().startswith("#") or line.strip() == '':

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions