Skip to content
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

Handle a whole slough of new squirely releng messages. #355

Merged
merged 1 commit into from Feb 1, 2016

Conversation

ralphbean
Copy link
Contributor

base = "https://dl.fedoraproject.org/pub/" + \
"fedora/linux/development"
else:
branch = msg['msg'].get('branch', 'not-a-number')
Copy link
Member

Choose a reason for hiding this comment

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

is this rather 'not-a-branch'?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No - "not-a-number", because I try to cast it to an int just two lines below.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The not-a-number could be "rawhide", for instance. ;)

Copy link
Member

Choose a reason for hiding this comment

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

But then msg['msg'].get('branch') would return rawhide no?

@pypingou
Copy link
Member

pypingou commented Feb 1, 2016

👍 but looks a little weak on tests, including if the branch isn't specified or is not a number

@ralphbean
Copy link
Contributor Author

As far as I can tell, that make-updates script always provides the branch and it is always a number. If it is absent or not a number, I think it will fail back to the other code paths just fine (and the other tests test those code paths). Thanks @pypingou!

ralphbean added a commit that referenced this pull request Feb 1, 2016
Handle a whole slough of new squirely releng messages.
@ralphbean ralphbean merged commit 72dc394 into develop Feb 1, 2016
@ralphbean ralphbean deleted the feature/squirrely-releng branch February 1, 2016 16:40
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.

None yet

2 participants