summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe/patch.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-02-04 13:20:28 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-02-07 09:06:37 +0000
commit984e90f4d71d866580131c4927b0a77baf1bb9bd (patch)
treeadfe717341c87f2719990a962951492b65c03c1c /meta/lib/oe/patch.py
parentca7adf75295c2a6041b891bfa61e0b4bc2f7c860 (diff)
downloadpoky-984e90f4d71d866580131c4927b0a77baf1bb9bd.tar.gz
meta/classes: Update classes to use new fetcher API
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe/patch.py')
-rw-r--r--meta/lib/oe/patch.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/lib/oe/patch.py b/meta/lib/oe/patch.py
index f203d683da..c8eeb8bc4c 100644
--- a/meta/lib/oe/patch.py
+++ b/meta/lib/oe/patch.py
@@ -72,14 +72,14 @@ class PatchSet(object):
72 if not patch.get("remote"): 72 if not patch.get("remote"):
73 raise PatchError("Patch file must be specified in patch import.") 73 raise PatchError("Patch file must be specified in patch import.")
74 else: 74 else:
75 patch["file"] = bb.fetch.localpath(patch["remote"], self.d) 75 patch["file"] = bb.fetch2.localpath(patch["remote"], self.d)
76 76
77 for param in PatchSet.defaults: 77 for param in PatchSet.defaults:
78 if not patch.get(param): 78 if not patch.get(param):
79 patch[param] = PatchSet.defaults[param] 79 patch[param] = PatchSet.defaults[param]
80 80
81 if patch.get("remote"): 81 if patch.get("remote"):
82 patch["file"] = bb.data.expand(bb.fetch.localpath(patch["remote"], self.d), self.d) 82 patch["file"] = bb.data.expand(bb.fetch2.localpath(patch["remote"], self.d), self.d)
83 83
84 patch["filemd5"] = bb.utils.md5_file(patch["file"]) 84 patch["filemd5"] = bb.utils.md5_file(patch["file"])
85 85
@@ -293,7 +293,7 @@ class QuiltTree(PatchSet):
293 if type == "file": 293 if type == "file":
294 import shutil 294 import shutil
295 if not patch.get("file") and patch.get("remote"): 295 if not patch.get("file") and patch.get("remote"):
296 patch["file"] = bb.fetch.localpath(patch["remote"], self.d) 296 patch["file"] = bb.fetch2.localpath(patch["remote"], self.d)
297 297
298 shutil.copyfile(patch["quiltfile"], patch["file"]) 298 shutil.copyfile(patch["quiltfile"], patch["file"])
299 else: 299 else: