-
Notifications
You must be signed in to change notification settings - Fork 26
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
(MODULES-8045) Fix apt-get upgrading everything when no version passed and apt is package manager. #92
Conversation
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.
DI-3391 doesn't seem related to this. Also, can we make sure a public ticket is linked to it?
I'm also not immediately sure what the issue was or why this fixes it. Please provide a more detailed commit message.
|
@MikaelSmith this PR was just raised to show someone an issue It is not a complete fix. I made a mistake with the issue number in the commit message and will address. |
f06074b
to
e17a073
Compare
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.
LGTM
|
@MikaelSmith I have raised a modules ticket and put more detail in with what the issue was. |
tasks/linux.sh
Outdated
| @@ -28,16 +28,19 @@ do | |||
| if [ "${version}" != "" ]; then | |||
| name="$name-$version" | |||
| fi | |||
| # upgrading to a specific version needs to use the install action | |||
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.
needs indented correctly
e17a073
to
f8f843a
Compare
|
great work @eoinmcq 👍 |
Problem
https://tickets.puppetlabs.com/browse/MODULES-8045
When using apt the current linux package updates all packages instead of the requested package when no version is specified. This is due to "upgrade" being used as the action. This will upgrade everything.
Solution
When updating a specific package using apt the 'install' argument should be used. This will update the package if it exists, or install it if it doesn't.
Testing