Patchwork [2/5] createrepo: Fix usage of create_wrapper

login
register
mail settings
Submitter Saul Wold
Date June 10, 2013, 9:45 p.m.
Message ID <1370900715-29294-3-git-send-email-sgw@linux.intel.com>
Download mbox | patch
Permalink /patch/51463/
State New
Headers show

Comments

Saul Wold - June 10, 2013, 9:45 p.m.
create_wrapper changed recently and behaves differently now. It does
not directly exec the , but exports them, so the first parameter
needs to be an environemnt variable like a PATH, not a executable.

Signed-off-by: Saul Wold <sgw@linux.intel.com>
---
 meta/recipes-support/createrepo/createrepo_0.4.11.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/meta/recipes-support/createrepo/createrepo_0.4.11.bb b/meta/recipes-support/createrepo/createrepo_0.4.11.bb
index c977c2e..4d71883 100644
--- a/meta/recipes-support/createrepo/createrepo_0.4.11.bb
+++ b/meta/recipes-support/createrepo/createrepo_0.4.11.bb
@@ -35,7 +35,7 @@  do_install_append_class-native () {
 	for i in ${D}${datadir}/createrepo/genpkgmetadata.py \
 		 ${D}${datadir}/createrepo/modifyrepo.py \
 		 ${D}${bindir}/rpm-createsolvedb.py ; do
-		create_wrapper $i ${STAGING_BINDIR_NATIVE}/python-native/python
+		create_wrapper $i PATH=${STAGING_BINDIR_NATIVE}/python-native:\$PATH
 	done
 
 	create_wrapper ${D}/${bindir}/createrepo \