-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes #10388: Add a generic method that handles using options in package actions #577
Conversation
Commit modified |
2a99c9f
to
8bf2abf
Compare
8bf2abf
to
2ab7304
Compare
Commit modified |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do it on version 1.0
# name old version new version | ||
# | | | | ||
# /-------+-------\ /--+--\ /------+-------\ | ||
match = re.match("^Inst\s+(?P<name>[^\s:]+)(?::\S+)?\s+\[[^\]\s]+\]\s+\((?P<version>\S+)" + | ||
match = re.match("^Inst\s+(?P<name>[^\s:]+)(?::\S+)?\s+\[[^]\s]+\]\s+\((?P<version>\S+)" + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removing this \ seems to be a mistake
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comes from the CFEngine script we had modified a bit. It does not change the behavior (while a bit less readable).
# repository(ies) arch (might be optional) | ||
# | | | ||
# /--+-\ /---------+---------\ | ||
"\s+[^[)]*(\s\[(?P<arch>[^]\s]+)\])?\).*", line) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
even if not mandatory, there should be a \ before the inside [
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
OK, merging this PR |
https://www.rudder-project.org/redmine/issues/10388