Fix package update

This commit is contained in:
Daniel Berteaud 2019-02-15 15:56:07 +01:00
parent 6fea3af40d
commit 47f2848982
1 changed files with 3 additions and 0 deletions

View File

@ -24,6 +24,9 @@ def update_package():
control = pe.load_control_from_wapt('.')
if Version(version) > Version(control['version'].split('-',1)[0]):
print('New Apple Mobile Device Support version %s' % version)
for file in ['AppleMobileDeviceSupport.msi', 'AppleMobileDeviceSupport64.msi' ]:
if isfile(file):
remove_file(file)
os.rename(makepath('temp','32','AppleMobileDeviceSupport.msi'),'AppleMobileDeviceSupport.msi')
os.rename(makepath('temp','64','AppleMobileDeviceSupport64.msi'),'AppleMobileDeviceSupport64.msi')
pe.version = version + '-0'