-
Notifications
You must be signed in to change notification settings - Fork 5
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
WIP: Multi successtag #8
base: master
Are you sure you want to change the base?
Conversation
allow for multiple success tags by specifying the option more that once TODO: documentation of function
@@ -124,9 +124,10 @@ def set_commitfailures(self, cf): | |||
""" | |||
self.commit_failures = cf | |||
|
|||
def set_success_tag(self, repo): | |||
def append_success_tag(self, tag): |
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.
Change tag
to some thing that will not be confused with repo:TAG
.
@@ -1,4 +1,4 @@ | |||
#!/usr/bin/python | |||
#!/usr/bin/env python2 |
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.
Move to different MR
@@ -75,7 +76,7 @@ def main(argv): | |||
["help", "checkout", "dry-run", "images", "skip-failure-commit", | |||
"list=", "list-bids", "entry=", "target=", "match-build-id", | |||
"new-build-id=", "upgrade=", "append-local-conf=", "success-tag="]) | |||
except getopt.GetoptError, e: | |||
except getopt.GetoptError as e: |
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.
Move to different MR
@@ -98,7 +99,8 @@ def main(argv): | |||
elif opt in ['-F', '--skip-failure-commit']: | |||
redo.set_commitfailures(False) | |||
elif opt in ['--success-tag']: | |||
redo.set_success_tag(arg) | |||
# change to multiple --success-tag calls | |||
redo.append_success_tag(arg.split) |
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.
remove faulty .split
This will add the functionality that multiple success tags are passed as parameter:
As requested in #7 .