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>
This commit is contained in:
Paul Eggleton 2016-03-04 16:22:52 +13:00 committed by Richard Purdie
parent bbf2a5d35f
commit 59b4cefe29
1 changed files with 0 additions and 22 deletions

View File

@ -1,22 +0,0 @@
python packageinfo_handler () {
import oe.packagedata
pkginfolist = []
pkgdata_dir = e.data.getVar("PKGDATA_DIR", True) + '/runtime/'
if os.path.exists(pkgdata_dir):
for root, dirs, files in os.walk(pkgdata_dir):
for pkgname in files:
if pkgname.endswith('.packaged'):
pkgname = pkgname[:-9]
pkgdatafile = root + pkgname
try:
sdata = oe.packagedata.read_pkgdatafile(pkgdatafile)
sdata['PKG'] = pkgname
pkginfolist.append(sdata)
except Exception as e:
bb.warn("Failed to read pkgdata file %s: %s: %s" % (pkgdatafile, e.__class__, str(e)))
bb.event.fire(bb.event.PackageInfo(pkginfolist), e.data)
}
addhandler packageinfo_handler
packageinfo_handler[eventmask] = "bb.event.RequestPackageInfo"