summaryrefslogtreecommitdiffstats
path: root/meta/classes/packagehistory.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-11-09 15:00:01 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-11-10 11:51:19 +0000
commitc8dee9b92dfd545852ecac8dc2adfc95ac02e957 (patch)
tree5f1b86954646a0f3bb914407994388a6a4346769 /meta/classes/packagehistory.bbclass
parent5d3860f4a8abb8e95442b04f8b84a333af362fcd (diff)
downloadpoky-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.bbclass8
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#
12python emit_pkghistory() { 12python 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):
72def write_pkghistory(pkg, pe, pv, pr, d): 72def 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
81def write_latestlink(pkg, pe, pv, pr, d): 81def 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: