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

(maint) Fix handling dev versions on Solaris 11 #107

Merged
merged 1 commit into from
Apr 14, 2016

Conversation

MikaelSmith
Copy link
Contributor

Version numbers for development packages on Solaris 11 need to be
munged, which happened for the file name. However Solaris 11
puppet-agent upgrades use the version number, which was not correctly
munged. Fix that, and add testing for development version numbers.

# Allow for normalizing package_version for the package provider via _package_version.
# This only needs to be passed through to install, as elsewhere we want to
# use the full version string for comparisons.
if !$_package_version {
Copy link
Contributor

Choose a reason for hiding this comment

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

Instead of relying on puppet's falsiness, maybe we should check $_package_version != undef?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure.

Version numbers for development packages on Solaris 11 need to be
munged, which happened for the file name. However Solaris 11
puppet-agent upgrades use the version number, which was not correctly
munged. Fix that, and add testing for development version numbers.
@highb
Copy link
Contributor

highb commented Apr 14, 2016

👍 Once travis passes. I ran this through a install.rb/agent_upgrade.rb beaker run, and followed up with acceptance/tests/ and it successfully upgraded.

@highb highb merged commit 9021994 into puppetlabs:master Apr 14, 2016
@MikaelSmith MikaelSmith deleted the fix-dev-versions branch July 1, 2016 18:54
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