-
-
Notifications
You must be signed in to change notification settings - Fork 506
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
DietPi-Software | Rework dependency and choice system #4314
Conversation
Awesome start with this, many thanks!
|
What about automated upgrades and user input? |
+ DietPi-Software | Start implementing desktop and browser preference system + DietPi-Software | WiFi/Tor HotSpot: When HotSpot criteria are not fulfilled, only unmark "to be installed" mark (1) but do not mark "already installed" mark, e.g. when a hotspot has been set but the adapter temporarily unplugged or connection issue. + DietPi-Software | Use aSOFTWARE_NAME[<ID>] variable where possible instead of hardcoded name in menus + DietPi-Software | Minor coding
+ DietPi-Software | Apply desktop and browser preference via dependency system + DietPi-Software | Explain preference systems in initial selection menu instead of in another separate prompt + DietPi-Software | Fix Nginx install detection when selecting a webserver preference: We install nginx-light and there would be nginx-full and nginx-extra as well, all providing the "nginx" meta package. Check for nginx-common, which is pulled by all of them. + DietPi-Software | Fix docs links from help prompt + DietPi-Software | Minor coding
So far so good. Ready for testing and review. First install test with XRDP, Xfce an "no" browser preference. X server + ALSA and those preferences are selected correctly. |
do we need to check other software title who have dependency as well? |
+ DietPi-Software | Respect new dietpi.txt settings for desktop and browser preferences and apply intended default when the webserver preference setting is missing + DietPi-Software | Apply preference indices when related software title is installed to avoid the situation that e.g. Xfce is manually installed but LXDE still shown as desktop preference.
It doesn't hurt to test others, just to verify the general functionality of this dependency system. |
ok I did 3 basic checks
|
+ DietPi-Software | Do not print software list in lower case and somehow formatted letters anymore, there is no real reason for this + DietPi-Software | Rename "X Server" back to "X.Org X Server" as this does not imply issues with CLI list print anymore. Leave "Git" renamed from "Git Client", as there is not really a separation. The "git" package and command can act as both, respectively a local Git repository can be accessed like a server as well.
Great, I also ran a few tests installs and reinstalls and added some debug output to all parts of the loop. It works pretty well as expected 💯. I'll add the changelogs and merge it then. |
+ CHANGELOG | DietPi-Software: A desktop preference choice has been added. Before first boot via new dietpi.txt AUTO_SETUP_DESKTOP_INDEX setting or with the new menu entry it can be now chosen which desktop to install when another software selection requires one, especially remote desktop solutions. It works like the webserver preference, so it only play a role when a desktop is installed as dependency and is overridden by manual desktop selections. + CHANGELOG | DietPi-Software: A browser preference choice has been added. Before first boot via new dietpi.txt AUTO_SETUP_BROWSER_INDEX setting or with the new menu entry it can be now chosen whether and which browser to install automatically together with desktops. Previously Firefox was installed with every desktop. It only plays a role when a desktop is installed and is overridden by manual browser selections. With this change, Firefox has become an independent software option.
Status: Testing
Add dummy IDs for webserver/desktop/browserEDIT: Not used anymore. Another way to resolve such meta dependencies has been implemented.Reference: #3921 (comment)
Commit list/description: