diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-11-09 15:00:01 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-11-10 11:51:19 +0000 |
commit | c8dee9b92dfd545852ecac8dc2adfc95ac02e957 (patch) | |
tree | 5f1b86954646a0f3bb914407994388a6a4346769 /meta/classes/packagehistory.bbclass | |
parent | 5d3860f4a8abb8e95442b04f8b84a333af362fcd (diff) | |
download | poky-c8dee9b92dfd545852ecac8dc2adfc95ac02e957.tar.gz |
Convert to use direct access to the data store (instead of bb.data.*Var*())
This is the result of running the following over the metadata:
sed \
-e 's:bb.data.\(setVar([^,()]*,[^,()]*\), *\([^ )]*\) *):\2.\1):g' \
-e 's:bb.data.\(setVarFlag([^,()]*,[^,()]*,[^,()]*\), *\([^) ]*\) *):\2.\1):g' \
-e 's:bb.data.\(getVar([^,()]*\), *\([^(), ]*\) *,\([^)]*\)):\2.\1,\3):g' \
-e 's:bb.data.\(getVarFlag([^,()]*,[^,()]*\), *\([^(), ]*\) *,\([^)]*\)):\2.\1,\3):g' \
-e 's:bb.data.\(getVarFlag([^,()]*,[^,()]*\), *\([^() ]*\) *):\2.\1):g' \
-e 's:bb.data.\(getVar([^,()]*\), *\([^) ]*\) *):\2.\1):g' \
-i `grep -ril bb.data *`
(From OE-Core rev: b22831fd63164c4db9c0b72934d7d734a6585251)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/packagehistory.bbclass')
-rw-r--r-- | meta/classes/packagehistory.bbclass | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/meta/classes/packagehistory.bbclass b/meta/classes/packagehistory.bbclass index 492bbac218..2cdf9d8a7c 100644 --- a/meta/classes/packagehistory.bbclass +++ b/meta/classes/packagehistory.bbclass | |||
@@ -10,8 +10,8 @@ PKGHIST_DIR = "${TMPDIR}/pkghistory/${BASEPKG_TARGET_SYS}/" | |||
10 | # for comparision when writing future packages | 10 | # for comparision when writing future packages |
11 | # | 11 | # |
12 | python emit_pkghistory() { | 12 | python emit_pkghistory() { |
13 | packages = bb.data.getVar('PACKAGES', d, True) | 13 | packages = d.getVar('PACKAGES', True) |
14 | pkghistdir = bb.data.getVar('PKGHIST_DIR', d, True) | 14 | pkghistdir = d.getVar('PKGHIST_DIR', True) |
15 | 15 | ||
16 | 16 | ||
17 | # Should check PACKAGES here to see if anything removed | 17 | # Should check PACKAGES here to see if anything removed |
@@ -72,14 +72,14 @@ def check_pkghistory(pkg, pe, pv, pr, lastversion): | |||
72 | def write_pkghistory(pkg, pe, pv, pr, d): | 72 | def write_pkghistory(pkg, pe, pv, pr, d): |
73 | bb.debug(2, "Writing package history") | 73 | bb.debug(2, "Writing package history") |
74 | 74 | ||
75 | pkghistdir = bb.data.getVar('PKGHIST_DIR', d, True) | 75 | pkghistdir = d.getVar('PKGHIST_DIR', True) |
76 | 76 | ||
77 | verpath = os.path.join(pkghistdir, pkg, pe, pv, pr) | 77 | verpath = os.path.join(pkghistdir, pkg, pe, pv, pr) |
78 | if not os.path.exists(verpath): | 78 | if not os.path.exists(verpath): |
79 | os.makedirs(verpath) | 79 | os.makedirs(verpath) |
80 | 80 | ||
81 | def write_latestlink(pkg, pe, pv, pr, d): | 81 | def write_latestlink(pkg, pe, pv, pr, d): |
82 | pkghistdir = bb.data.getVar('PKGHIST_DIR', d, True) | 82 | pkghistdir = d.getVar('PKGHIST_DIR', True) |
83 | 83 | ||
84 | def rm_link(path): | 84 | def rm_link(path): |
85 | try: | 85 | try: |