[Openstack-docs] validate.py - images?

Andreas Jaeger aj at suse.com
Thu Sep 12 07:58:57 UTC 2013


On 09/11/2013 07:23 PM, Christian Berendt wrote:
> On 09/11/2013 06:59 PM, David Cramer wrote:
>> Just to confirm: your algorithm looks at a book file for xincluded
>> files, then recursively checks those files for xincludes etc. If any
>> files that are xincluded into the book or any that are dependencies of
>> the included files have changed, then you build and publish the book,
>> correct?
> 
> Nearly correct. I have a list of modified files. The book that contains
> a modified file will be built. Then I check all xincludes in every XML
> file. If one xinclude contains a modified (at the moment only with the
> ending .xml) file I'll mark the book also as modified and it will be
> built. This way all books affected by modified (at the moment only with
> the ending .xml) files will be built.

Looking at the code, I noticed:
* Do you rebuild a book if just pom.xml gets updated? I think not - but
we should
* We should rebuild *all* books if validate.py gets updated

Andreas
-- 
 Andreas Jaeger aj@{suse.com,opensuse.org} Twitter/Identica: jaegerandi
  SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
   GF: Jeff Hawn,Jennifer Guild,Felix Imendörffer,HRB16746 (AG Nürnberg)
    GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126



More information about the Openstack-docs mailing list