diff options
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: |
