Univention Bugzilla – Bug 40754
"univention-register-apps" != "univention-app update"
Last modified: 2016-03-17 14:28:54 CET
I just observed that univention-register-apps behaves different from univention-app update: Here the output of univention-app update: ---------- 8< ---------- root@ucs-1234:~# univention-app update Downloading "https://appcenter.software-univention.de/meta-inf/4.1/index.json.gz"... Downloading "https://appcenter.software-univention.de/meta-inf/4.1/index.json.gz.gpg"... Downloading "https://appcenter.software-univention.de/meta-inf/categories.ini"... Downloading "https://appcenter.software-univention.de/meta-inf/rating.ini"... Deleting obsolete /var/cache/univention-appcenter/index.json.gz.gpg Deleting obsolete /var/cache/univention-appcenter/index.json.gz 0 file(s) are new File: /usr/share/univention-management-console/modules/apps.xml File: /usr/share/univention-management-console/i18n/de/apps.mo ---------- 8< ---------- And here the output of univention-register-apps: ---------- 8< ---------- root@ucs-1234:~# /usr/sbin/univention-register-apps 23.02.16 11:48:31.329 MODULE ( PROCESS ) : Downloading "https://appcenter.software-univention.de/meta-inf/4.1/index.json.gz.gpg"... 23.02.16 11:48:31.421 MODULE ( PROCESS ) : Downloading "https://appcenter.software-univention.de/meta-inf/4.1/index.json.gz"... 23.02.16 11:48:31.614 MODULE ( PROCESS ) : 0 file(s) are new File: /usr/share/univention-management-console/modules/apps.xml File: /usr/share/univention-management-console/i18n/de/apps.mo File: /etc/apt/apt.conf.d/55user_agent All applications have been registered. ---------- 8< ---------- There are mainly three places where univention-register-apps is used. I will adjust the call in univention-system-setup via Bug 40046. ---------- 8< ---------- $ git grep univention-register-apps base/univention-system-setup/debian/univention-system-setup-boot.postinst: /usr/sbin/univention-register-apps base/univention-updater/script/univention-add-app: subprocess.call(['/usr/sbin/univention-register-apps']) test/ucs-ec2-tools/examples/jenkins/utils/base_appliance.sh:univention-register-apps ---------- 8< ----------
"univention-register-apps" should use "univention-app update; univention-app register"
univention-register-apps uses the old code. Downloading index.json.gz from the old code may result in an outdated cache. Furthermore, the old code considers Apps without DefaultPackages as installed, always. This is a problem with Docker Apps that have their software already installed in the container, e.g., jenkins. Please adjust univention-register-apps to use the new code. Add a deprecation warning to the output.
This has already been fixed with r67632 while working on Bug 40046.
BTW, the fix can be found in ucs-4.1/component/app-appliance/univention-system-setup
It has only been fixed in system-setup but not in general.
univention-appcenter (5.0.20-21): r68035 | Bug #40754: use the new python code in univention-register-apps univention-appcenter.yaml: r68036 | YAML Bug #40754 Bug #40875
Code: OK YAML: OK
<http://errata.software-univention.de/ucs/4.1/130.html>