xen/xend-remove-xm-deprecation-warning.patch
Charles Arnold 5eed528ac8 - On platforms where xend is still supported don't output a
deprecation warning when using xm.
  xend-remove-xm-deprecation-warning.patch
- Changed License to GPL-2.0 (from GPL-2.0+)
  xen_pvonhvm.xen_emul_unplug.patch
  Dropped xen_pvdrivers.conf
  qemu-xen-upstream-blkif-discard.patch
- Restore a few missing xend patches
  xend-config-enable-dump-comment.patch
  xend-tools-watchdog-support.patch
  xend-vif-route-ifup.patch

OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=294
2014-01-28 15:44:51 +00:00

35 lines
1.3 KiB
Diff

Index: xen-4.4.0-testing/tools/python/xen/xm/xm
===================================================================
--- xen-4.4.0-testing.orig/tools/python/xen/xm/xm
+++ xen-4.4.0-testing/tools/python/xen/xm/xm
@@ -4,17 +4,17 @@ import sys, os.path
from xen.xm import main
-print >>sys.stderr, ("WARNING: xend/xm is deprecated.")
-
-if not os.path.exists("/var/run/xm-deprecation-long-warning"):
- print >>sys.stderr, ("""
-xend is deprecated and scheduled for removal. Please migrate to another
-toolstack ASAP.
-
-See http://wiki.xen.org/wiki/Choice_of_Toolstacks for information on
-other alternatives, including xl which is designed to be a drop in
-replacement for xm (http://wiki.xen.org/wiki/XL).
-""")
- open("/var/run/xm-deprecation-long-warning", "w").close()
+#print >>sys.stderr, ("WARNING: xend/xm is deprecated.")
+#
+#if not os.path.exists("/var/run/xm-deprecation-long-warning"):
+# print >>sys.stderr, ("""
+#xend is deprecated and scheduled for removal. Please migrate to another
+#toolstack ASAP.
+#
+#See http://wiki.xen.org/wiki/Choice_of_Toolstacks for information on
+#other alternatives, including xl which is designed to be a drop in
+#replacement for xm (http://wiki.xen.org/wiki/XL).
+#""")
+# open("/var/run/xm-deprecation-long-warning", "w").close()
main.main(sys.argv)