[libvirt] [PATCH] docs: Move news.rng out of docs/schemas

Peter Krempa pkrempa at redhat.com
Wed Apr 5 07:56:13 UTC 2017


docs/schemas directory is meant for schemas which are installed on the
system. The schema for the news file does not need to be installed.
Store it along with the file it describes for simplicity.
---
Patch for the alternative of moving news rng to docs/ along with the file it
should describe.

 docs/{schemas => }/news.rng | 0
 docs/news.xml               | 2 +-
 tests/virschematest.c       | 2 +-
 3 files changed, 2 insertions(+), 2 deletions(-)
 rename docs/{schemas => }/news.rng (100%)

diff --git a/docs/schemas/news.rng b/docs/news.rng
similarity index 100%
rename from docs/schemas/news.rng
rename to docs/news.rng
diff --git a/docs/news.xml b/docs/news.xml
index 9c0dcfd23..2a15b1236 100644
--- a/docs/news.xml
+++ b/docs/news.xml
@@ -17,7 +17,7 @@

      Lines should be kept under 80 columns, and should not exceed 100 columns.

-     This file is validated against docs/schemas/news.rng schema.
+     This file is validated against docs/news.rng schema.

      Use the following template to add a new release section:

diff --git a/tests/virschematest.c b/tests/virschematest.c
index 1f990f7cd..119d4ba39 100644
--- a/tests/virschematest.c
+++ b/tests/virschematest.c
@@ -236,7 +236,7 @@ mymain(void)
     DO_TEST_DIR("storagevol.rng", "storagevolxml2xmlin", "storagevolxml2xmlout",
                 "storagevolschemadata");

-    DO_TEST_FILE("news.rng", "../docs/news.xml");
+    DO_TEST_FILE("../news.rng", "../docs/news.xml");

     return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
 }
-- 
2.12.2




More information about the libvir-list mailing list