Univention Bugzilla – Attachment 8194 Details for
Bug 42862
listener/udm_extension.py doesn't cleanup when file changes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
42862.patch (text/plain), 1.36 KB, created by
Florian Best
on 2016-11-07 10:45:12 CET
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Florian Best
Created:
2016-11-07 10:45:12 CET
Size:
1.36 KB
patch
obsolete
>diff --git a/management/univention-directory-manager-modules/listener/udm_extension.py b/management/univention-directory-manager-modules/listener/udm_extension.py >index 0aee89f..bb10876 100755 >--- a/management/univention-directory-manager-modules/listener/udm_extension.py >+++ b/management/univention-directory-manager-modules/listener/udm_extension.py >@@ -101,6 +101,8 @@ def handler(dn, new, old): > else: > ud.debug(ud.LISTENER, ud.ERROR, '%s: Undetermined error: unknown objectclass: %s.' % (name, ocs)) > >+ old_relative_filename = old.get('%sFilename' % objectclass)[0] >+ > if new: > new_version = new.get('univentionOwnedByPackageVersion', [None])[0] > if not new_version: >@@ -136,6 +138,8 @@ def handler(dn, new, old): > new_relative_filename = new.get('%sFilename' % objectclass)[0] > listener.setuid(0) > try: >+ if old_relative_filename != new_relative_filename: >+ remove_python_file(objectclass, target_subdir, old_relative_filename) > if not install_python_file(objectclass, target_subdir, new_relative_filename, new_object_data): > return > install_messagecatalog(dn, new, objectclass) >@@ -148,7 +152,6 @@ def handler(dn, new, old): > elif old: > > # ok, basic checks passed, handle the change >- old_relative_filename = old.get('%sFilename' % objectclass)[0] > listener.setuid(0) > try: > remove_python_file(objectclass, target_subdir, old_relative_filename)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 42862
: 8194