Skip to content

WIP: Multi successtag#8

Open
wfailla wants to merge 2 commits into
carosio:masterfrom
wfailla:multiSuccesstag
Open

WIP: Multi successtag#8
wfailla wants to merge 2 commits into
carosio:masterfrom
wfailla:multiSuccesstag

Conversation

@wfailla
Copy link
Copy Markdown
Contributor

@wfailla wfailla commented Jul 3, 2017

This will add the functionality that multiple success tags are passed as parameter:

--success-tag foo:bar --success-tag fred:waldo

As requested in #7 .

Willy Failla added 2 commits July 3, 2017 08:30
allow for multiple success tags by specifying the option more that once

TODO: documentation of function
Comment thread libredo/Redomat.py
self.commit_failures = cf

def set_success_tag(self, repo):
def append_success_tag(self, tag):
Copy link
Copy Markdown
Contributor Author

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.

Comment thread redomat.py
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python2
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move to different MR

Comment thread redomat.py
"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:
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move to different MR

Comment thread redomat.py
elif opt in ['--success-tag']:
redo.set_success_tag(arg)
# change to multiple --success-tag calls
redo.append_success_tag(arg.split)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove faulty .split

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant