Bug 27887 - Traceback beim Update von univention-samba-local-config
Traceback beim Update von univention-samba-local-config
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Samba
UCS 3.0
Other Linux
: P5 normal (vote)
: UCS 3.1
Assigned To: Arvid Requate
Tobias Peters
: interim-1
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-07-12 11:04 CEST by Felix Botner
Modified: 2012-12-12 21:11 CET (History)
2 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Botner univentionstaff 2012-07-12 11:04:23 CEST
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.
Comment 1 Arvid Requate univentionstaff 2012-08-20 15:06:11 CEST
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.
Comment 2 Arvid Requate univentionstaff 2012-08-20 18:43:15 CEST
Die Reihenfolge ist jetzt in debian/rules umgedreht.
Comment 3 Tobias Peters univentionstaff 2012-09-06 16:23:12 CEST
Code Review: OK
Funktionalität: bei einem Update oder einer Neuinstallation von univention-samba-local-config tritt kein Traceback auf.
Changelog: vorhanden
Comment 4 Stefan Gohmann univentionstaff 2012-12-12 21:11:18 CET
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".