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

install_deps: upgrade only specified packages, not full system #768

Merged
merged 3 commits into from
Mar 3, 2024

Conversation

theblackhole
Copy link

@theblackhole theblackhole commented Feb 3, 2024

Change install_deps.sh script behaviour especially for Debian-based systems to only upgrade specified packages instead of all installed packages. (e.g. apt-get install -y ca-certificates instead of apt-get upgrade -y ca-certificates where ca-certificates is ignored and a full system upgrade is launched)

A full system upgrade is not necessary because the package manager handle dependencies/libraries upgrade automatically when you install/upgrade packages.

A full system upgrade can even be dangerous/unwanted on some cases, especially because of the -y option used here (e.g. a pending display driver update that could break everything with the next reboot).

However, if ever in the future there is a real need for a complete system upgrade, the upgrade commands have been moved to a new PM_SYSTEM_UPGRADE_MAP array (with its related SYSTEM_UPGRADE_OPTION), this time without the -y argument to let the user check and confirm the proposed updates.

Checklist

  • Have tested the modifications
    -> Yes, on a Debian-based system (Ubuntu 23.10). Suse should not be impacted as the command is the same whether to update a package (zypper up <package>) or all packages (zypper up)

theblackhole and others added 3 commits February 3, 2024 02:02
Change `install_deps.sh` script behaviour to only upgrade specified packages instead of all installed packages. Full system upgrade is not necessary and can even be dangerous (see PR for more details)
to pass CI check
@Howard20181 Howard20181 merged commit f5c77b5 into LSPosed:main Mar 3, 2024
1 check passed
Howard20181 added a commit that referenced this pull request Mar 3, 2024
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