mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 01:19:52 +00:00
Add file information to package information window
Removed the package files parsing routine from the packageinfo.bbclass file and added it to the package.bbclass file. (From OE-Core rev: 225e7826b0d082f43db82201e826b98b3a95cd57) Signed-off-by: Andrei Dinu <andrei.adrianx.dinu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
824856181b
commit
4dbdcf9462
@@ -1130,6 +1130,13 @@ python emit_pkgdata() {
|
||||
workdir = d.getVar('WORKDIR', True)
|
||||
|
||||
for pkg in packages.split():
|
||||
items = {}
|
||||
for files_list in pkgfiles[pkg]:
|
||||
item_name = os.path.basename(files_list)
|
||||
item_path = os.path.dirname(files_list)
|
||||
if item_path not in items:
|
||||
items[item_path] = []
|
||||
items[item_path].append(item_name)
|
||||
subdata_file = pkgdatadir + "/runtime/%s" % pkg
|
||||
|
||||
pkgval = d.getVar('PKG_%s' % pkg, True)
|
||||
@@ -1137,6 +1144,8 @@ python emit_pkgdata() {
|
||||
pkgval = pkg
|
||||
d.setVar('PKG_%s' % pkg, pkg)
|
||||
|
||||
d.setVar('FILES_INFO', str(items))
|
||||
|
||||
sf = open(subdata_file, 'w')
|
||||
write_if_exists(sf, pkg, 'PN')
|
||||
write_if_exists(sf, pkg, 'PV')
|
||||
@@ -1161,6 +1170,7 @@ python emit_pkgdata() {
|
||||
write_if_exists(sf, pkg, 'pkg_preinst')
|
||||
write_if_exists(sf, pkg, 'pkg_prerm')
|
||||
write_if_exists(sf, pkg, 'FILERPROVIDESFLIST')
|
||||
write_if_exists(sf, pkg, 'FILES_INFO')
|
||||
for dfile in (d.getVar('FILERPROVIDESFLIST_' + pkg, True) or "").split():
|
||||
write_if_exists(sf, pkg, 'FILERPROVIDES_' + dfile)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user