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

(PE-11531) Fix upgrade issue with dev builds #113

Conversation

highb
Copy link
Contributor

@highb highb commented Apr 20, 2016

Prior to this commit the module would always upgrade with dev
builds because they have a git SHA appended to the end, which
versioncmp considers to be greater than the version reported
by aio_agent_version, which lacks the extra git sha characters.
This commit updates the update check to strip the git sha when
comparing the aio_agent_version to the requested packace_version.

@highb highb force-pushed the fix/master/pe-11531_fix_dev_build_upgrades branch from cbe2af4 to 686ee8b Compare April 20, 2016 06:20
@MikaelSmith
Copy link
Contributor

Failing specs.

@highb
Copy link
Contributor Author

highb commented Apr 20, 2016

Gr, I thought I ran rake test on this. That's what I get for coding tired.

Prior to this commit the module would always upgrade with dev
builds because they have a git SHA appended to the end, which
`versioncmp` considers to be greater than the version reported
by `aio_agent_version`, which lacks the extra git sha characters.
This commit updates the update check to strip the git sha when
comparing the `aio_agent_version` to the requested `packace_version`.
@highb highb force-pushed the fix/master/pe-11531_fix_dev_build_upgrades branch from 686ee8b to 1aa5e70 Compare April 20, 2016 16:01
@highb
Copy link
Contributor Author

highb commented Apr 20, 2016

There, syntax passes locally. Sorry about that.

@MikaelSmith
Copy link
Contributor

Specs are getting complicated. Looks good though.

@MikaelSmith MikaelSmith merged commit 77d5d1f into puppetlabs:master Apr 20, 2016
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.

2 participants