minor changes #15
Loading…
Reference in a new issue
No description provided.
Delete branch "rework/misc"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
PR Reviewer Guide 🔍
Here are some key observations to aid the review process:
Possible Logic Bug
The added
apt show "$package"check may incorrectly treat package specifications that include version constraints or architecture qualifiers, causing valid packages to be skipped. Verify that the check correctly handles such cases or consider usingapt-cache policyfor availability testing.Potential Variable Expansion Issue
The
apt installcommand uses-o Dpkg::Options::='$dpkgOptions'. The single quotes around$dpkgOptionsprevent shell variable expansion, which may result in the options not being applied. Ensure the variable is expanded correctly, e.g., by removing the surrounding single quotes.Minor Consistency Concern
The spinner message for
.debpackages was changed to"Installing using DPKG $package..."while the command still usesdpkg -i '$package'. This mismatch may confuse users if the variable is not expanded as expected. Align the message with the actual command behavior./improve
PR Code Suggestions ✨
Latest suggestions up to
b454cc8Fix dpkg options quoting
The current quoting passes literal single quotes around the expanded
$dpkgOptions,which can confuse
dpkg. Remove the inner single quotes and quote the variableproperly to ensure the option string is interpreted correctly.
installer/utils.sh [501]
Suggestion importance[1-10]: 7
__
Why: The original quoting prevents
$dpkgOptionsfrom being expanded, so the intended dpkg options are ignored. Correcting the quoting ensures the options are applied, which can affect package installation behavior.Use reliable package availability check
The availability check using
apt-cache showmay incorrectly skip packages that areprovided virtually or via meta‑packages. Replace it with a more reliable test such
as
apt-cache policyor a dry‑run install (apt-get -s install "$package"). Thisreduces false negatives and ensures required packages are not omitted.
installer/utils.sh [497-500]
Suggestion importance[1-10]: 5
__
Why: Replacing
apt-cache showwith a simulated install (apt-get -s install) gives a more accurate availability test, but it adds overhead and may still produce false negatives if dependencies are missing. The change is useful but not critical.Previous suggestions
Suggestions up to commit
b454cc8Use apt-cache for availability check
Replace
apt showwith a non‑interactive query likeapt-cache policyto reliablydetect package availability without invoking the full
aptfront‑end. This avoidspotential prompts or slower execution.
installer/utils.sh [497-500]
Suggestion importance[1-10]: 4
__
Why: Replacing
apt showwithapt-cache policycan avoid invoking the fullaptfront‑end, but the change adds complexity and is not essential; it provides a modest improvement without fixing a bug./improve One last time
PR Code Suggestions ✨
No code suggestions found for the PR.
WIP: minor changesto minor changes