Bug 35202

Summary: univention-check-templates breaks on conffiles with space in name if python-debian is installed
Product: UCS Reporter: Janis Meybohm <meybohm>
Component: UCRAssignee: Felix Botner <botner>
Status: CLOSED FIXED QA Contact: Philipp Hahn <hahn>
Severity: normal    
Priority: P5 CC: gohmann, walkenhorst
Version: UCS 3.2Flags: meybohm: Patch_Available+
Target Milestone: UCS 3.2-3-errata   
Hardware: Other   
OS: Linux   
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:
Bug Depends on:    
Bug Blocks: 35910    
Attachments: Use rsplit instead

Description Janis Meybohm univentionstaff 2014-06-26 15:41:33 CEST
Created attachment 5975 [details]
Use rsplit instead

Ticket#: 2014061721000508


If a package provides conffiles with space in name AND python-debian is installed, univention-check-templates breaks:
---
Traceback (most recent call last):
  File "/usr/sbin/univention-check-templates", line 168, in <module>
    sys.exit(main())
  File "/usr/sbin/univention-check-templates", line 52, in main
    modified |= check_md5(opt.verbose)
  File "/usr/sbin/univention-check-templates", line 102, in check_md5
    for filepath, expected in iter_templates():
  File "/usr/sbin/univention-check-templates", line 134, in iter_templates
    filepath, fmd5 = fields
ValueError: too many values to unpack
---
Comment 1 Felix Botner univentionstaff 2014-09-01 16:07:15 CEST
ok, fixed

YAML: 2014-08-28-univention-config-registry.yaml

Merged to 4.0
Comment 2 Philipp Hahn univentionstaff 2014-09-02 16:30:29 CEST
OK: announce_errata -V 2014-08-28-univention-config-registry.yaml
OK: univention-check-templates (w python-debian)
OK: univention-check-templates (w/o python-debian)
OK: aptitude install '?source-package(univention-config)?installed'
OK: UCS-3.2-3 python2.6
OK: UCS_4.0-0 python2.7
Comment 3 Janek Walkenhorst univentionstaff 2014-09-10 17:34:42 CEST
http://errata.univention.de/ucs/3.2/189.html