Univention Bugzilla – Bug 39368
New files from App Center server need to update local ones
Last modified: 2016-05-04 18:10:35 CEST
univention-app update downloads new files from the server. When new files replace existing ones, one has to be careful to update the files not only in the cache dir, but also were these files are used. The join script for example needs to be installed at /usr/lib/univention-install if the corresponding app is currently installed.
We can only update join scripts for released apps when this bug is fixed
univention-appcenter r68970 univention-appcenter.yaml
REOPEN: unjoin scripts are installed while the App is installed. You would need to copy the script in case it is uninstalled. But only if it was not run successfully. This is the case when the unjoin script still exists or the unjoin script is brand new. Maybe _update_local_files is not the right place, although it looked like it at first. Maybe one needs to do it when actually downloading / extracting the file. This would also have the benefit that not every script is written (at least tested with md5sum) when a README for a App not installed changed.
(In reply to Dirk Wiesenthal from comment #3) > or the unjoin script is brand new. I guess it is okay to just skip this case. You cannot really find out whether the App was installed... (I guess you could by parsing logfiles...)
(In reply to Dirk Wiesenthal from comment #3) > REOPEN: unjoin scripts are installed while the App is installed. > > You would need to copy the script in case it is uninstalled. But only if it > was not run successfully. This is the case when the unjoin script still > exists or the unjoin script is brand new. > > Maybe _update_local_files is not the right place, although it looked like it > at first. Maybe one needs to do it when actually downloading / extracting > the file. This would also have the benefit that not every script is written > (at least tested with md5sum) when a README for a App not installed changed. * uinst changes are now ignored * _update_local_files now checks if the file has been download (self._files_downloaded) before checking for changes between cache and destination
Changeset: OK YAML: OK
<http://errata.software-univention.de/ucs/4.1/168.html>