Bug 22522 - UCR diverted Subfile-Template-Dateien
Summary: UCR diverted Subfile-Template-Dateien
Status: CLOSED FIXED
Alias: None
Product: UCS
Classification: Unclassified
Component: UCR
Version: UCS 3.0
Hardware: Other Linux
: P5 normal
Target Milestone: UCS 3.0
Assignee: Philipp Hahn
QA Contact:
URL:
Keywords:
Depends on:
Blocks: 17913
  Show dependency treegraph
 
Reported: 2011-05-13 20:27 CEST by Philipp Hahn
Modified: 2012-06-12 11:13 CEST (History)
0 users

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):
Customer ID:
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Hahn univentionstaff 2011-05-13 20:27:21 CEST
Gerade bei svn24087 aufgefallen: Sowohl der alte (UCS-2.4) alsauch der neue (UCS-3.0)-Code diverten die Subfile-Templates:

-                       elif item.has_key('Subfile'):
-                               for f in item['Subfile']:
-                                       if f[0] != '/':
-                                               f = '/'+f
-                                       if not f in filelist:
-                                               preinst.write('test "$1" = "install" -o "$1" = "upgrade" && dpkg-divert --rename --quiet --divert %s --add %s || true\n' % (f+'.debian', f))
-                                               postrm.write('test "$1" = "remove" && rm -f %s && dpkg-divert --rename --quiet --divert %s --remove %s || true\n' % (f, f+'.debian', f))
-                                               postinst.write('res=$(dpkg-divert --list --quiet %s) && if [ -z "$res" ]; then dpkg-divert --quiet --divert %s --add %s; fi || true\n' % (f,f+'.debian', f))
-                                               filelist.append(f)
-                                               filelist.append(f)

+               elif item.get('Subfile'):
+                       for f in item['Subfile']:
+                               do_divert(f)

Das macht IMHO absolut keinen Sinn, den bei den durch "Subfile" in den .univention-config-registry referenzierten Dateien handelt es sich um Subfiles, die sich unter /etc/univention/templates/files/ befinden und deshalb nie aus einem normalen Debian-Paket stammen können.

Das führt jetzt bei der Umstellung deR dpkg-divert-Verwendung zu leichten Problemen.
Comment 1 Philipp Hahn univentionstaff 2011-05-13 21:23:53 CEST
Subfile-Templates werden nun nicht länger diverted.

svn24154, univention-config-registry_7.0.5-1.332.201105132119

ChangeLog:
\item \ucsUCS{} subfile template files were unnecessarily diverted on install, which is now no longer done (\ucsBug{22522}).
Comment 2 Philipp Hahn univentionstaff 2012-06-12 11:13:36 CEST
Das wurde für UCS-3.0 umgesetzt und nur dem falschen Target-Milestone zugewiesen.