diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-09-01 08:52:40 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-09-01 15:51:42 +0100 |
commit | 554c892ccf16ca564e7be94f84eaa73667170e15 (patch) | |
tree | 01b74616570ebd473abf6bb287cdfcfbd797d41b /meta/classes/patch.bbclass | |
parent | 6d9e3a19384cbd737fdac729c6c0de5b06f8ec12 (diff) | |
download | poky-554c892ccf16ca564e7be94f84eaa73667170e15.tar.gz |
meta: Don't use deprecated bitbake API
These have been deprecated for a long time, convert the remaining
references to the correct modules and prepare for removal of the
compatibility support from bitbake.
(From OE-Core rev: 6a39835af2b2b3c7797fe05479341d71a3f3aaf6)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/patch.bbclass')
-rw-r--r-- | meta/classes/patch.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/patch.bbclass b/meta/classes/patch.bbclass index ed12802491..86c65b3b8d 100644 --- a/meta/classes/patch.bbclass +++ b/meta/classes/patch.bbclass | |||
@@ -44,7 +44,7 @@ def src_patches(d, all = False ): | |||
44 | if patchdir: | 44 | if patchdir: |
45 | patchparm['patchdir'] = patchdir | 45 | patchparm['patchdir'] = patchdir |
46 | 46 | ||
47 | localurl = bb.encodeurl(('file', '', local, '', '', patchparm)) | 47 | localurl = bb.fetch.encodeurl(('file', '', local, '', '', patchparm)) |
48 | patches.append(localurl) | 48 | patches.append(localurl) |
49 | 49 | ||
50 | if all: | 50 | if all: |
@@ -147,7 +147,7 @@ python patch_do_patch() { | |||
147 | os.environ['TMPDIR'] = process_tmpdir | 147 | os.environ['TMPDIR'] = process_tmpdir |
148 | 148 | ||
149 | for patch in src_patches(d): | 149 | for patch in src_patches(d): |
150 | _, _, local, _, _, parm = bb.decodeurl(patch) | 150 | _, _, local, _, _, parm = bb.fetch.decodeurl(patch) |
151 | 151 | ||
152 | if "patchdir" in parm: | 152 | if "patchdir" in parm: |
153 | patchdir = parm["patchdir"] | 153 | patchdir = parm["patchdir"] |