mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
Install dtd into correct place
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
This commit is contained in:
1 parent
7771ae57e8
commit
1d4f277da8
2 files changed
+6
-3
No files matched your search
@@ -56,13 +56,16 @@ refresh-po: $(POTFILE)
|
||||
.PHONY: install
|
||||
ifndef XEN_PYTHON_NATIVE_INSTALL
|
||||
install: LIBPATH=$(shell PYTHONPATH=xen/util python -c "import auxbin; print auxbin.libpath()")
|
||||
install: install-messages
|
||||
install: install-messages install-dtd
|
||||
CC="$(CC)" CFLAGS="$(CFLAGS)" python setup.py install --home="$(DESTDIR)/usr" --prefix="" --force --install-lib="$(DESTDIR)$(LIBPATH)/python"
|
||||
else
|
||||
install: install-messages
|
||||
install: install-messages install-dtd
|
||||
CC="$(CC)" CFLAGS="$(CFLAGS)" python setup.py install --root="$(DESTDIR)" --force
|
||||
endif
|
||||
|
||||
install-dtd: all
|
||||
$(INSTALL) -m 755 xen/xm/create.dtd $(DESTDIR)/usr/share/xen
|
||||
|
||||
install-messages: all
|
||||
if which $(MSGFMT) >/dev/null ; then \
|
||||
mkdir -p $(DESTDIR)$(NLSDIR); \
|
||||
|
||||
@@ -72,7 +72,7 @@ class xenapi_create:
|
||||
def __init__(self):
|
||||
self.DEFAULT_STORAGE_REPOSITORY = get_default_SR()
|
||||
|
||||
self.dtd = "/usr/lib/python/xen/xm/create.dtd"
|
||||
self.dtd = "/usr/share/xen/create.dtd"
|
||||
|
||||
def create(self, filename=None, document=None, skipdtd=False):
|
||||
"""
|
||||
|
||||