python base_do_patch () {
import re, string
- from oe import decodeurl
+ from oe import decodeurl, note
src_uri = data.getVar('SRC_URI', d)
if not src_uri:
return
src_uri = data.expand(src_uri, d)
for url in src_uri.split():
+ note('url is %s' % url)
(type, host, path, user, pswd, parm) = decodeurl(url)
if not parm.has_key("patch"):
continue
local = localpath(url)
# patch!
dots = local.split(".")
- efile = os.path.join(data.getVar('WORKDIR', d),os.path.basename(re.sub(r"\.%s$" % dots[-1],"",local)))
+ if dots[-1] in ['gz', 'bz2', 'Z']:
+ efile = os.path.join(data.getVar('WORKDIR', d),os.path.basename(local))
+ else:
+ efile = local
efile = data.expand(efile, d)
patches_dir = data.expand(data.getVar('PATCHES_DIR', d), d)
mkdirhier(patches_dir)
cmd += " -i %s" % efile
ret = os.system(cmd)
if ret != 0:
- raise FuncFailed("'patcher' execution failed")
+ raise TaskFailed("'patcher' execution failed")
}
python base_do_fetch() {
base_do_compile() {
if [ -x ./configure ] ; then
- oeconf
+ oe_runconf
fi
if [ -e Makefile -o -e makefile ]; then
- oemake || die "oemake failed"
+ oe_runmake || die "make failed"
else
oenote "nothing to compile"
fi