Skip to content

Commit

Permalink
VirtualBox builds: accept both sources of VirtualBox packages
Browse files Browse the repository at this point in the history
- either package `virtualbox` (by Debian), or
- package `virtualbox-6.1` (by virtualbox.org)
  • Loading branch information
adrelanos committed Aug 14, 2021
1 parent 288323a commit 2e9b99f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions build-steps.d/1120_prepare-build-machine
Expand Up @@ -134,10 +134,12 @@ build_machine_setup() {
packages_to_be_installed+=" $linux_headers "

true "INFO: Checking if VirtualBox is already installed..."
if virtualbox_version_installed="$(dpkg-query --show --showformat='${Version}' "virtualbox-6.1")" ; then
true "INFO: VirtualBox is already installed."
if virtualbox_version_installed="$(dpkg-query --show --showformat='${Version}' "virtualbox")" ; then
true "INFO: virtualbox is already installed."
elif virtualbox_version_installed="$(dpkg-query --show --showformat='${Version}' "virtualbox-6.1")" ; then
true "INFO: virtualbox-6.1 is already installed."
else
true "${red}${bold}ERROR: virtualbox-6.1 is not yet installed. Please install as per build documentation.${reset}"
true "${red}${bold}ERROR: Neither package virtualbox nor package virtualbox-6.1 is installed. Please install as per build documentation.${reset}"
error "See above!"
fi

Expand Down

0 comments on commit 2e9b99f

Please sign in to comment.