Commit 4469cb54 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play virtualbox-extpack: always use version of the installed virtualbox

parent f26688e6
...@@ -8,14 +8,13 @@ URL="https://www.virtualbox.org/wiki/Downloads" ...@@ -8,14 +8,13 @@ URL="https://www.virtualbox.org/wiki/Downloads"
. $(dirname $0)/common.sh . $(dirname $0)/common.sh
# for current virtualbox package
if [ "$VERSION" = "*" ] ; then if [ "$VERSION" = "*" ] ; then
if [ -n "$force" ] ; then # use latest virtualbox version
VERSION=$(basename $(eget --list --latest https://download.virtualbox.org/virtualbox/ "^[0-9]*")) VERSION=$(basename $(eget --list --latest https://download.virtualbox.org/virtualbox/ "^[0-9]*"))
else else
epm installed virtualbox || fatal "virtualbox package is not installed" # always install the version corresponding to the installed virtualbox
VERSION="$(epm print version for package virtualbox)" epm status --installed virtualbox || fatal "virtualbox package is not installed"
fi VERSION="$(epm print version for package virtualbox)"
fi fi
if [ "$(epm print compare "$VERSION" 7.1.0)" != "-1" ] ; then if [ "$(epm print compare "$VERSION" 7.1.0)" != "-1" ] ; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment