diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2016-03-04 16:22:52 +1300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-03-07 17:17:43 +0000 |
commit | 59b4cefe29b8ad457ce0d9b9947938d5aa9d58f4 (patch) | |
tree | 40e17aff7768587e95913b20ef5b733a058241e2 /meta/classes | |
parent | bbf2a5d35f0f3ccfc70222621b4b824ba66a35ec (diff) | |
download | poky-59b4cefe29b8ad457ce0d9b9947938d5aa9d58f4.tar.gz |
classes/packageinfo: remove
This class was only used by Hob, and since Hob has now been removed we
can drop it as well.
(From OE-Core rev: b8db070926a7ec294816bc6648eb12db7f126f26)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/packageinfo.bbclass | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/meta/classes/packageinfo.bbclass b/meta/classes/packageinfo.bbclass deleted file mode 100644 index 7d60ace1dc..0000000000 --- a/meta/classes/packageinfo.bbclass +++ /dev/null | |||
@@ -1,22 +0,0 @@ | |||
1 | python packageinfo_handler () { | ||
2 | import oe.packagedata | ||
3 | pkginfolist = [] | ||
4 | |||
5 | pkgdata_dir = e.data.getVar("PKGDATA_DIR", True) + '/runtime/' | ||
6 | if os.path.exists(pkgdata_dir): | ||
7 | for root, dirs, files in os.walk(pkgdata_dir): | ||
8 | for pkgname in files: | ||
9 | if pkgname.endswith('.packaged'): | ||
10 | pkgname = pkgname[:-9] | ||
11 | pkgdatafile = root + pkgname | ||
12 | try: | ||
13 | sdata = oe.packagedata.read_pkgdatafile(pkgdatafile) | ||
14 | sdata['PKG'] = pkgname | ||
15 | pkginfolist.append(sdata) | ||
16 | except Exception as e: | ||
17 | bb.warn("Failed to read pkgdata file %s: %s: %s" % (pkgdatafile, e.__class__, str(e))) | ||
18 | bb.event.fire(bb.event.PackageInfo(pkginfolist), e.data) | ||
19 | } | ||
20 | |||
21 | addhandler packageinfo_handler | ||
22 | packageinfo_handler[eventmask] = "bb.event.RequestPackageInfo" | ||