]> code.ossystems Code Review - openembedded-core.git/commitdiff
createrepo: RDEPENDS on libxml2-python
authorRobert Yang <liezhi.yang@windriver.com>
Wed, 25 Jun 2014 09:16:20 +0000 (02:16 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 25 Jun 2014 12:51:08 +0000 (13:51 +0100)
Fixed the error when run createrepo on target:
  Traceback (most recent call last):
    File "/usr/share/createrepo/genpkgmetadata.py", line 27, in <module>
      import libxml2
    File "/usr/lib64/python2.7/site-packages/libxml2.py", line 1, in <module>
  ImportError: No module named libxml2mod

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-support/createrepo/createrepo_0.4.11.bb

index 159a6c4b273e2c3e015b7ae8763f57dff393b1de..49b45fc3b8bee8c7c065a17bd8c2c0ac8dba44ae 100644 (file)
@@ -5,6 +5,7 @@ LICENSE = "GPLv2+"
 LIC_FILES_CHKSUM = "file://COPYING;md5=18810669f13b87348459e611d31ab760"
 
 DEPENDS_class-native += "libxml2-native rpm-native"
+RDEPENDS_${PN}_class-target = "libxml2-python"
 
 PR = "r9"