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

Fixes #18999: when we install a plugin, if the dependency (package manager) is not met, it still tries to install it and fails #3551

Conversation

ncharles
Copy link
Member

@ncharles ncharles requested a review from peckpeck March 19, 2021 14:59
@ncharles
Copy link
Member Author

Commit modified

@ncharles ncharles force-pushed the bug_18999/when_we_install_a_plugin_if_the_dependency_package_manager_is_not_met_it_still_tries_to_install_it_and_fails branch from 38db85b to cc975b3 Compare March 19, 2021 15:00
@@ -307,7 +318,36 @@ def install_dependencies(metadata):
logger.warning("The binary " + executable + " was not found on the system, you must install it before installing " + metadata['name'])
return False
else:
Copy link
Contributor

Choose a reason for hiding this comment

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

You should add a case in the same way that the "binary" type was defined. I am pretty sure we want to have typed dependencies and so, an "apt" and a "rpm" type of dependencies..

@ncharles
Copy link
Member Author

PR updated with a new commit

@Normation-Quality-Assistant
Copy link
Contributor

This PR is not mergeable to upper versions.
Since it is "Ready for merge" you must merge it by yourself using the following command:
rudder-dev merge https://github.com/Normation/rudder/pull/3551
-- Your faithful QA
Kant merge: "Happiness is not an ideal of reason, but of imagination."
(https://ci.normation.com/jenkins/job/merge-accepted-pr/37766/console)

@fanf
Copy link
Member

fanf commented Apr 16, 2021

OK, squash merging this PR

…nager) is not met, it still tries to install it and fails
@fanf fanf force-pushed the bug_18999/when_we_install_a_plugin_if_the_dependency_package_manager_is_not_met_it_still_tries_to_install_it_and_fails branch from f2801a8 to c99cd86 Compare April 16, 2021 06:58
@fanf
Copy link
Member

fanf commented Apr 16, 2021

OK, merging this PR

4 similar comments
@fanf
Copy link
Member

fanf commented Apr 16, 2021

OK, merging this PR

@fanf
Copy link
Member

fanf commented Apr 16, 2021

OK, merging this PR

@peckpeck
Copy link
Member

OK, merging this PR

@VinceMacBuche
Copy link
Member

OK, merging this PR

@VinceMacBuche VinceMacBuche merged commit c99cd86 into Normation:branches/rudder/6.1 Apr 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
6 participants