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

Dependencies installation is reworked in Installation assistant #3002

Conversation

davidcr01
Copy link
Contributor

Related issue
#2879

Description

The aim of this PR is to rework the dependencies installation of the Installation assistant. The original aim of this development is to make the Installation assistant ask for permission to install the necessary dependencies in the performed installation.

Before, the script installed the necessary dependencies for the installation, without asking the user for confirmation. Now, to control this, a new parameter -id|--install-dependencies has been added. If the user wants the Installation assistant to install the dependencies automatically, a new parameter must be added. Otherwise, the installation will be stopped if a dependency is required.

Example:

Note

WARNING: To perform the installation, the following package/s must be installed: lsof, openssl, software-properties-common. The following package/s will be removed after the installation: lsof, openssl. Add the -id|--install-dependencies parameter to install them automatically or install them manually.

Other changes

Other changes and improvements have been added:

  • Removed all WIA references, and replaced them by "Assistant". The WIA term should not be used anymore as it can be confusing.
  • The lsof and openssl are not installed separately, they belong to the global list of dependencies. These dependencies will be installed only when necessary.
  • The Assistant dependencies are removed after completing the installation, or if the installation is rollbacked.
  • The function that installs a dependency list is now unified.
  • The function that removes the Assistant dependencies is now unified.
  • The used ports are scanned at an early stage, to simplify the code.
  • The addition and deletion of CentOS repositories are better controlled.
  • The installCommon_installCheckDependencies and installCommon_installPrerequisites functions are removed and are unified into the installCommon_installDependencies function.
  • Some confusing variables were renamed to more clarifying definitions.

Tests

c-bordon
c-bordon previously approved these changes Jun 13, 2024
…k-for-confirmation-before-installing-dependencies
@c-bordon c-bordon merged commit b818579 into master Jun 18, 2024
4 checks passed
@c-bordon c-bordon deleted the change/2879-installation-assistant-must-ask-for-confirmation-before-installing-dependencies branch June 18, 2024 11:30
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.

Installation assistant must ask for confirmation before installing dependencies
2 participants