packages: xen/xend.empty.xml.patch (NEW)=?UTF-8?Q?=20?=- xend fails to start if /var/lib/...

baggins baggins at pld-linux.org
Wed Feb 29 22:06:12 CET 2012


Author: baggins                      Date: Wed Feb 29 21:06:12 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- xend fails to start if /var/lib/xend/state/*.xml are empty

---- Files affected:
packages/xen:
   xend.empty.xml.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/xen/xend.empty.xml.patch
diff -u /dev/null packages/xen/xend.empty.xml.patch:1.1
--- /dev/null	Wed Feb 29 22:06:12 2012
+++ packages/xen/xend.empty.xml.patch	Wed Feb 29 22:06:07 2012
@@ -0,0 +1,15 @@
+http://lists.xensource.com/archives/html/xen-devel/2011-11/msg00218.html
+
+diff -r 54a5e994a241 -r 76391f599433 tools/python/xen/xend/XendStateStore.py
+--- a/tools/python/xen/xend/XendStateStore.py   Wed Nov 02 17:09:09 2011 +0000
++++ b/tools/python/xen/xend/XendStateStore.py   Thu Nov 03 12:02:44 2011 -0400
+@@ -101,6 +101,9 @@ class XendStateStore:
+         if not os.path.exists(xml_path):
+             return {}
+ 
++        if not os.path.getsize(xml_path) == 0:
++            return {}
++
+         dom = minidom.parse(xml_path)
+         root = dom.documentElement
+         state = {}
================================================================


More information about the pld-cvs-commit mailing list