Use version value instead of hardocding it

This commit is contained in:
Daniel Berteaud 2018-12-10 18:00:59 +01:00
parent b0860bd753
commit 1f9c166457
1 changed files with 1 additions and 1 deletions

View File

@ -6,4 +6,4 @@ uninstallkey = []
def install():
print('Installing Spice Guest Tools')
version = control['version'].split('-',1)[0]
install_exe_if_needed('spice-guest-tools-%s.exe' % version, silentflags='/S', key='SpiceGuestTools', min_version='0.141')
install_exe_if_needed('spice-guest-tools-%s.exe' % version, silentflags='/S', key='SpiceGuestTools', min_version=version)