Univention Bugzilla – Attachment 5975 Details for
Bug 35202
univention-check-templates breaks on conffiles with space in name if python-debian is installed
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Use rsplit instead
univention-check-templates_rsplit.patch (text/plain), 859 bytes, created by
Janis Meybohm
on 2014-06-26 15:41:33 CEST
(
hide
)
Description:
Use rsplit instead
Filename:
MIME Type:
Creator:
Janis Meybohm
Created:
2014-06-26 15:41:33 CEST
Size:
859 bytes
patch
obsolete
>--- /usr/sbin/univention-check-templates.orig 2014-06-26 15:39:26.584580340 +0200 >+++ /usr/sbin/univention-check-templates 2014-06-26 15:39:49.816615726 +0200 >@@ -127,7 +127,7 @@ > except KeyError: > continue > for conffile in conffiles.splitlines(): >- fields = [_.strip() for _ in conffile.split(' ') if _] >+ fields = [_.strip() for _ in conffile.rsplit(' ', 1) if _] > # skip obsolete and new conffiles > if not fields or 'newconffile' in fields or 'obsolete' in fields: > continue >@@ -141,7 +141,7 @@ > for line in dpkg_status: > if line.startswith(prefix): > line = line.strip() >- fields = [_.strip() for _ in line.split(' ')] >+ fields = [_.strip() for _ in line.rsplit(' ', 1)] > # skip obsolete and new conffiles > if not fields or 'newconffile' in fields or 'obsolete' in fields: > continue
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 35202
: 5975