Skip to content

Commit

Permalink
improve VirtualBox version check
Browse files Browse the repository at this point in the history
  • Loading branch information
adrelanos committed Aug 18, 2023
1 parent b1532ba commit e8b6c8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions usr/bin/dist-installer-cli
Expand Up @@ -1716,11 +1716,11 @@ install_virtualbox_fedora(){
fi
}

has_virtualbox_qt=0
if get_virtualbox_version_fedora ; then
test_pkg "${virtualbox_qt_package_name}" 2>/dev/null && has_virtualbox_qt=1
else
true "INFO: get_virtualbox_version_fedora failed the first time which is normal is the repository has not been enabled yet."
has_virtualbox_qt=0
fi

## Guard against adding extraneous repositories.
Expand Down Expand Up @@ -1776,11 +1776,11 @@ install_virtualbox_debian(){
linux_headers="linux-headers-$(dpkg --print-architecture)"
install_pkg "${linux_headers}"

has_virtualbox_qt=0
if get_virtualbox_version_debian ; then
test_pkg "${virtualbox_qt_package_name}" 2>/dev/null && has_virtualbox_qt=1
else
true "INFO: get_virtualbox_version_fedora failed the first time which is normal is the repository has not been enabled yet."
has_virtualbox_qt=0
fi

if test "${has_virtualbox_qt}" != "1"; then
Expand Down

0 comments on commit e8b6c8e

Please sign in to comment.