Univention Bugzilla – Bug 48151
Check if univention-debmirror is already installed in univention-repository-create
Last modified: 2019-03-12 13:41:13 CET
Created attachment 9744 [details] Patch for univention-repository-create to check if univention-debmirror is installed before trying to install it univention-repository-create tries to install univention-debmirror every time it's executed. It's only after that, that it checks whether univention-debmirror is installed. This could create the following problem: - User has for some reason broken the local repo (deleted something accidentally) and wants to recreate it - univention-repository-create tries to install univention-debmirror from the local repo and fails - User would have to switch back to the offical repo to run univention-repository-create successfully Therefore I think univention-repository-create should check whether univention-debmirror is installed before trying to install it. That would also prevent some unnecessary output and save some time. Attached is a patch that uses is_debmirror_installed() to do this.
[4.4-0] 7a3e70fdb9 Bug #48151 up: Check if univention-debmirror is installed base/univention-updater/debian/changelog | 1 + base/univention-updater/python/univention-repository-create | 9 ++++----- 2 files changed, 5 insertions(+), 5 deletions(-) Package: univention-updater Version: 14.0.0-16A~4.4.0.201903101858 Branch: ucs_4.4-0
Tests: OK (it still aborts if it can't be installed) Code review: OK Changelog: OK
UCS 4.4 has been released: https://docs.software-univention.de/release-notes-4.4-0-en.html https://docs.software-univention.de/release-notes-4.4-0-de.html If this error occurs again, please use "Clone This Bug".