Univention Bugzilla – Bug 27887
Traceback beim Update von univention-samba-local-config
Last modified: 2012-12-12 21:11:18 CET
smbclient (2:3.5.11~dfsg-10.530.201207090900) wird eingerichtet ... univention-samba-local-config (6.0.43-1.377.201207111947) wird eingerichtet ... Neue Version der Konfigurationsdatei /etc/univention/templates/info/univention-samba-local-config.info wird installiert ... Neue Version der Konfigurationsdatei /etc/univention/templates/scripts/samba.local.config.py wird installiert ... Script: /etc/univention/templates/scripts/samba.local.config.py Traceback (most recent call last): File "/etc/univention/templates/scripts/samba.local.config.py", line 34, in <module> from univention.lib.share_restrictions import ShareConfiguration ImportError: No module named share_restrictions Multifile: /etc/samba/smb.conf Im preinst wird das Template registiert, jedoch gibt es zu diesem Zeitpunkt die Lib univention/lib/share_restrictions.py noch nicht (im gleichen Paket). Vielleicht kann man mit try/except um das Import etwas erreichen.
Im postinst wird erst # Automatically added by univention-install-config-registry [...] univention-config-registry register univention-samba-local-config # End automatically added section und dann # Automatically added by dh_pysupport [...] update-python-modules univention-samba-local-config.public # End automatically added section aufgerufen.
Die Reihenfolge ist jetzt in debian/rules umgedreht.
Code Review: OK Funktionalität: bei einem Update oder einer Neuinstallation von univention-samba-local-config tritt kein Traceback auf. Changelog: vorhanden
UCS 3.1-0 has been released: http://forum.univention.de/viewtopic.php?f=54&t=2125 If this error occurs again, please use "Clone This Bug".