Allow relative paths, not just file names where files are referenced
diff -r 6fb5cb8419d3 -r 4227c03796d6 doc/image.rng
--- a/doc/image.rng Sat Dec 01 12:12:41 2007 -0500 +++ b/doc/image.rng Tue Dec 04 15:17:10 2007 -0800 @@ -116,9 +116,9 @@ Boot a kernel/initrd contained in the image --> <group> - <element name="kernel"><ref name="fileName"/></element> - <optional> - <element name="initrd"><ref name="fileName"/></element> + <element name="kernel"><ref name="relFilePath"/></element> + <optional> + <element name="initrd"><ref name="relFilePath"/></element> </optional> <optional> <element name="cmdline"><text/></element> @@ -135,7 +135,7 @@ --> <oneOrMore> <element name="drive"> - <attribute name="disk"><ref name="fileName"/></attribute> + <attribute name="disk"><ref name="relFilePath"/></attribute> <optional> <attribute name="target"><ref name="deviceName"/></attribute> </optional> @@ -161,7 +161,7 @@ iso for an ISO --> <element name="disk"> - <attribute name="file"><ref name="fileName"/></attribute> + <attribute name="file"><ref name="relFilePath"/></attribute> <attribute name="use"> <choice> <value>system</value> @@ -229,6 +229,11 @@ <param name="pattern">[^/]+</param> </data> </define> + <define name='relFilePath'> + <data type='string'> + <param name="pattern">[a-zA-Z0-9_+-%.][a-zA-Z0-9_+-%./]*</param> + </data> + </define> <define name='deviceName'> <data type='string'> <param name="pattern">[a-zA-Z0-9_-:./]+</param> _______________________________________________ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools |
Allow relative paths, not just file names where files are referenced
On Tue, Dec 04, 2007 at 04:44:56PM -0800, David Lutterkort wrote:
> diff -r 6fb5cb8419d3 -r 4227c03796d6 doc/image.rng > --- a/doc/image.rng Sat Dec 01 12:12:41 2007 -0500 > +++ b/doc/image.rng Tue Dec 04 15:17:10 2007 -0800 > @@ -116,9 +116,9 @@ > Boot a kernel/initrd contained in the image > --> > <group> > - <element name="kernel"><ref name="fileName"/></element> > - <optional> > - <element name="initrd"><ref name="fileName"/></element> > + <element name="kernel"><ref name="relFilePath"/></element> > + <optional> > + <element name="initrd"><ref name="relFilePath"/></element> > </optional> > <optional> > <element name="cmdline"><text/></element> > @@ -135,7 +135,7 @@ Is this really just a schema change - no code change required ? In any case, ACK. Dan. -- |=- Red Hat, Engineering, Emerging Technologies, Boston. +1 978 392 2496 -=| |=- Perl modules: http://search.cpan.org/~danberr/ -=| |=- Projects: http://freshmeat.net/~danielpb/ -=| |=- GnuPG: 7D3B9505 F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 -=| _______________________________________________ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools |
| All times are GMT. The time now is 11:19 PM. |
VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.