[Bug 473691] New: Allow pattern Element in start Pattern (file patterns.rnc)
https://bugzilla.novell.com/show_bug.cgi?id=473691 Summary: Allow pattern Element in start Pattern (file patterns.rnc) Classification: openSUSE Product: openSUSE 11.2 Version: unspecified Platform: Other OS/Version: Other Status: NEW Severity: Minor Priority: P5 - None Component: libzypp AssignedTo: zypp-maintainers@forge.provo.novell.com ReportedBy: thomas.schraitle@novell.com QAContact: qa@suse.de Found By: Documentation The patterns.rnc file from http://svn.opensuse.org/svn/zypp/trunk/libzypp/zypp/parser/yum/schema contains the following line include "suse-primary.rnc" { start = element-patterns } However, when you run "osc meta pattern -e PRJ PATTERN" you get this lines: <!-- See http://svn.opensuse.org/svn/zypp/trunk/libzypp/zypp/parser/yum/schema/patter... --> <pattern> </pattern> Unfortunately, this wouldn't be valid according to patterns.rnc as there is only the patterns element (plural!) allowed. Probably an oversight? :) I would suggest to allow the pattern element too and extend the start pattern as follows: include "suse-primary.rnc" { start = element-patterns | element-pattern } This would avoid validation errors with patterns.rnc. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=473691 User jkupec@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=473691#c1 Ján Kupec <jkupec@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jkupec@novell.com AssignedTo|zypp-maintainers@forge.prov |poeml@novell.com |o.novell.com | --- Comment #1 from Ján Kupec <jkupec@novell.com> 2009-03-17 06:52:02 MST --- Hi, why not fixing osc to enclose the <pattern> elements in <patterns>? yum schema's patterns.rnc describes the yum meta-data, and allowing the pattern element to be the starting element would allow for broken yum meta-data. Reassigning to osc maintainer. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=473691 User mls@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=473691#c2 Michael Schröder <mls@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |poeml@novell.com AssignedTo|poeml@novell.com |zypp-maintainers@forge.prov | |o.novell.com --- Comment #2 from Michael Schröder <mls@novell.com> 2009-03-17 07:06:56 MST --- This is not about the repodata patterns.xml.gz file, but a single pattern definition. They are merged later on into a <patterns> element when the repository data is created. Maybe there should be patterns.rng and pattern.rng, like there is with patches? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com