]> code.ossystems Code Review - openembedded-core.git/commitdiff
createrepo 0.4.11: add rpm-createsolvedb.py
authorRobert Yang <liezhi.yang@windriver.com>
Wed, 1 Aug 2012 09:14:53 +0000 (17:14 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 1 Aug 2012 22:03:06 +0000 (23:03 +0100)
Move scripts/rpm-createsolvedb.py to
meta/recipes-support/createrepo/createrepo/ since we should wrap it to
use the native python.

[YOCTO #2822]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/rootfs_rpm.bbclass
meta/recipes-support/createrepo/createrepo/rpm-createsolvedb.py [moved from scripts/rpm-createsolvedb.py with 100% similarity]
meta/recipes-support/createrepo/createrepo_0.4.11.bb

index c9258dfe395f55d4d3bacfc9f75abe3abb885e2f..a03e9f379d23249862ef89e6f3b03e217118a954 100644 (file)
@@ -17,7 +17,7 @@ do_rootfs[depends] += "rpmresolve-native:do_populate_sysroot"
 do_rootfs[depends] += "opkg-native:do_populate_sysroot"
 
 # Creating the repo info in do_rootfs
-#do_rootfs[depends] += "createrepo-native:do_populate_sysroot"
+do_rootfs[depends] += "createrepo-native:do_populate_sysroot"
 
 do_rootfs[recrdeptask] += "do_package_write_rpm"
 
index 7a4d05968e87a3bf476512fce015de665310f5f2..dcddcf83319519692cca78e730611227f0bcc4df 100644 (file)
@@ -6,12 +6,13 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=18810669f13b87348459e611d31ab760"
 
 RDEPENDS_${PN}_virtclass-native += "libxml2-native rpm-native"
 
-PR = "r4"
+PR = "r5"
 
 SRC_URI= "http://createrepo.baseurl.org/download/${BP}.tar.gz \
           file://fix-native-install.patch \
           file://python-scripts-should-use-interpreter-from-env.patch \
          file://createrepo-rpm549.patch \
+         file://rpm-createsolvedb.py \
          "
 
 SRC_URI[md5sum] = "3e9ccf4abcffe3f49af078c83611eda2"
@@ -21,4 +22,5 @@ BBCLASSEXTEND = "native"
 
 do_install () {
        oe_runmake -e 'DESTDIR=${D}' install
+       install -m 0755 ${WORKDIR}/rpm-createsolvedb.py ${D}${bindir}/
 }