Skip to content

Commit

Permalink
init: fixed apt-get install not detecting virtual packages (#1036)
Browse files Browse the repository at this point in the history
  • Loading branch information
guss77 authored Nov 19, 2023
1 parent 52b82d3 commit 433b36a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion distrobox-init
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ if [ "${upgrade}" -ne 0 ] ||
"
install_pkg=""
for dep in ${deps}; do
if apt-cache show "${dep}" | grep -q Package; then
if apt-cache policy "${dep}" | grep Candidate | grep -qv none; then
install_pkg="${install_pkg} ${dep}"
fi
done
Expand Down

0 comments on commit 433b36a

Please sign in to comment.