summaryrefslogtreecommitdiffstats
path: root/meta/classes/package_ipk.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2008-07-17 21:34:57 +0000
committerRichard Purdie <richard@openedhand.com>2008-07-17 21:34:57 +0000
commitd12df5427a52c03ad3027d882a9749e5284ca344 (patch)
treea759ad5c583249b98fb1a9e754a4bd27829756f6 /meta/classes/package_ipk.bbclass
parent7332ac9069c01441defd10d2341f55f4d186bc2c (diff)
downloadpoky-d12df5427a52c03ad3027d882a9749e5284ca344.tar.gz
Switch from ipkg-utils to opkg-utils
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4863 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/classes/package_ipk.bbclass')
-rw-r--r--meta/classes/package_ipk.bbclass14
1 files changed, 7 insertions, 7 deletions
diff --git a/meta/classes/package_ipk.bbclass b/meta/classes/package_ipk.bbclass
index f6c71a250d..790bba0fd0 100644
--- a/meta/classes/package_ipk.bbclass
+++ b/meta/classes/package_ipk.bbclass
@@ -49,7 +49,7 @@ python package_ipk_install () {
49 49
50 if (not os.access(os.path.join(ipkdir,"Packages"), os.R_OK) or 50 if (not os.access(os.path.join(ipkdir,"Packages"), os.R_OK) or
51 not os.access(os.path.join(tmpdir, "stamps", "IPK_PACKAGE_INDEX_CLEAN"),os.R_OK): 51 not os.access(os.path.join(tmpdir, "stamps", "IPK_PACKAGE_INDEX_CLEAN"),os.R_OK):
52 ret = os.system('ipkg-make-index -p %s %s ' % (os.path.join(ipkdir, "Packages"), ipkdir)) 52 ret = os.system('opkg-make-index -p %s %s ' % (os.path.join(ipkdir, "Packages"), ipkdir))
53 if (ret != 0 ): 53 if (ret != 0 ):
54 raise bb.build.FuncFailed 54 raise bb.build.FuncFailed
55 f = open(os.path.join(tmpdir, "stamps", "IPK_PACKAGE_INDEX_CLEAN"),"w") 55 f = open(os.path.join(tmpdir, "stamps", "IPK_PACKAGE_INDEX_CLEAN"),"w")
@@ -74,16 +74,16 @@ package_update_index_ipk () {
74 fi 74 fi
75 75
76 touch ${DEPLOY_DIR_IPK}/Packages 76 touch ${DEPLOY_DIR_IPK}/Packages
77 ipkg-make-index -r ${DEPLOY_DIR_IPK}/Packages -p ${DEPLOY_DIR_IPK}/Packages -l ${DEPLOY_DIR_IPK}/Packages.filelist -m ${DEPLOY_DIR_IPK} 77 opkg-make-index -r ${DEPLOY_DIR_IPK}/Packages -p ${DEPLOY_DIR_IPK}/Packages -l ${DEPLOY_DIR_IPK}/Packages.filelist -m ${DEPLOY_DIR_IPK}
78 78
79 for arch in $ipkgarchs; do 79 for arch in $ipkgarchs; do
80 if [ -e ${DEPLOY_DIR_IPK}/$arch/ ] ; then 80 if [ -e ${DEPLOY_DIR_IPK}/$arch/ ] ; then
81 touch ${DEPLOY_DIR_IPK}/$arch/Packages 81 touch ${DEPLOY_DIR_IPK}/$arch/Packages
82 ipkg-make-index -r ${DEPLOY_DIR_IPK}/$arch/Packages -p ${DEPLOY_DIR_IPK}/$arch/Packages -l ${DEPLOY_DIR_IPK}/$arch/Packages.filelist -m ${DEPLOY_DIR_IPK}/$arch/ 82 opkg-make-index -r ${DEPLOY_DIR_IPK}/$arch/Packages -p ${DEPLOY_DIR_IPK}/$arch/Packages -l ${DEPLOY_DIR_IPK}/$arch/Packages.filelist -m ${DEPLOY_DIR_IPK}/$arch/
83 fi 83 fi
84 if [ -e ${DEPLOY_DIR_IPK}/${BUILD_ARCH}-$arch-sdk/ ] ; then 84 if [ -e ${DEPLOY_DIR_IPK}/${BUILD_ARCH}-$arch-sdk/ ] ; then
85 touch ${DEPLOY_DIR_IPK}/${BUILD_ARCH}-$arch-sdk/Packages 85 touch ${DEPLOY_DIR_IPK}/${BUILD_ARCH}-$arch-sdk/Packages
86 ipkg-make-index -r ${DEPLOY_DIR_IPK}/${BUILD_ARCH}-$arch-sdk/Packages -p ${DEPLOY_DIR_IPK}/${BUILD_ARCH}-$arch-sdk/Packages -l ${DEPLOY_DIR_IPK}/${BUILD_ARCH}-$arch-sdk/Packages.filelist -m ${DEPLOY_DIR_IPK}/${BUILD_ARCH}-$arch-sdk/ 86 opkg-make-index -r ${DEPLOY_DIR_IPK}/${BUILD_ARCH}-$arch-sdk/Packages -p ${DEPLOY_DIR_IPK}/${BUILD_ARCH}-$arch-sdk/Packages -l ${DEPLOY_DIR_IPK}/${BUILD_ARCH}-$arch-sdk/Packages.filelist -m ${DEPLOY_DIR_IPK}/${BUILD_ARCH}-$arch-sdk/
87 fi 87 fi
88 done 88 done
89} 89}
@@ -280,10 +280,10 @@ python do_package_ipk () {
280 280
281 os.chdir(basedir) 281 os.chdir(basedir)
282 ret = os.system("PATH=\"%s\" %s %s %s" % (bb.data.getVar("PATH", localdata, 1), 282 ret = os.system("PATH=\"%s\" %s %s %s" % (bb.data.getVar("PATH", localdata, 1),
283 bb.data.getVar("IPKGBUILDCMD",d,1), pkg, pkgoutdir)) 283 bb.data.getVar("OPKGBUILDCMD",d,1), pkg, pkgoutdir))
284 if ret != 0: 284 if ret != 0:
285 bb.utils.unlockfile(lf) 285 bb.utils.unlockfile(lf)
286 raise bb.build.FuncFailed("ipkg-build execution failed") 286 raise bb.build.FuncFailed("opkg-build execution failed")
287 287
288 for script in ["preinst", "postinst", "prerm", "postrm", "control" ]: 288 for script in ["preinst", "postinst", "prerm", "postrm", "control" ]:
289 scriptfile = os.path.join(controldir, script) 289 scriptfile = os.path.join(controldir, script)
@@ -302,7 +302,7 @@ python () {
302 import bb 302 import bb
303 if bb.data.getVar('PACKAGES', d, True) != '': 303 if bb.data.getVar('PACKAGES', d, True) != '':
304 deps = (bb.data.getVarFlag('do_package_write_ipk', 'depends', d) or "").split() 304 deps = (bb.data.getVarFlag('do_package_write_ipk', 'depends', d) or "").split()
305 deps.append('ipkg-utils-native:do_populate_staging') 305 deps.append('opkg-utils-native:do_populate_staging')
306 deps.append('fakeroot-native:do_populate_staging') 306 deps.append('fakeroot-native:do_populate_staging')
307 bb.data.setVarFlag('do_package_write_ipk', 'depends', " ".join(deps), d) 307 bb.data.setVarFlag('do_package_write_ipk', 'depends', " ".join(deps), d)
308} 308}