Skip to content

Commit

Permalink
unconditionally enabling additional repositories without checking if …
Browse files Browse the repository at this point in the history
…VirtualBox is already installed

to ensure that upgrades are installed
  • Loading branch information
adrelanos committed Dec 7, 2023
1 parent ed305c6 commit 57412fe
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions usr/bin/dist-installer-cli
Original file line number Diff line number Diff line change
Expand Up @@ -1858,13 +1858,13 @@ install_repositories_for_virtualbox_on_debian(){
distro_codename_real=$(lsb_release --short --codename)
distro_codename_common_use="${distro_codename_real}"

log info "VirtualBox Package Availability Test: Checking if package 'virtualbox-qt' is already installable from an already enabled repository..."
if ${pkg_mngr_install} --simulate install virtualbox-qt 1>/dev/null 2>/dev/null ; then
## Package 'virtualbox' is installable on Debian unstable ("sid").
log notice "VirtualBox Package Availability Test Result: 'success' - Package 'virtualbox-qt' is already installable from an already enabled repository. No need to add any extra repositories."
return 0
fi
log info "VirtualBox Package Availability Test Result: Not yet Available. Enabling additional repository..."
# log info "VirtualBox Package Availability Test: Checking if package 'virtualbox-qt' is already installable from an already enabled repository..."
# if ${pkg_mngr_install} --simulate install virtualbox-qt 1>/dev/null 2>/dev/null ; then
# ## Package 'virtualbox' is installable on Debian unstable ("sid").
# log notice "VirtualBox Package Availability Test Result: 'success' - Package 'virtualbox-qt' is already installable from an already enabled repository. No need to add any extra repositories."
# return 0
# fi
# log info "VirtualBox Package Availability Test Result: Not yet Available. Enabling additional repository..."

if test "${dev}" = "1"; then
distro_codename_kicksecure_use="${distro_codename_common_use}-developers"
Expand Down

0 comments on commit 57412fe

Please sign in to comment.