The maintainer declaration in the buildhistory is useful for tracking the maintainer of recipes. This change adds the MAINTAINER variable for recipes and packages to its buildhistory data.
Signed-off-by: Purushottam Choudhary <purushottam.choudh...@kpit.com> --- meta/classes/buildhistory.bbclass | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass index 8a1359a..04fac82 100644 --- a/meta/classes/buildhistory.bbclass +++ b/meta/classes/buildhistory.bbclass @@ -109,6 +109,7 @@ python buildhistory_emit_pkghistory() { self.pe = "0" self.pv = "0" self.pr = "r0" + self.maintainer = "" self.depends = "" self.packages = "" self.srcrev = "" @@ -126,6 +127,7 @@ python buildhistory_emit_pkghistory() { self.pkge = "" self.pkgv = "" self.pkgr = "" + self.maintainer = "" self.size = 0 self.depends = "" self.rprovides = "" @@ -162,6 +164,8 @@ python buildhistory_emit_pkghistory() { pkginfo.pkgv = value elif name == "PKGR": pkginfo.pkgr = value + elif name == "MAINTAINER": + pkginfo.maintainer = value elif name == "RPROVIDES": pkginfo.rprovides = value elif name == "RDEPENDS": @@ -215,6 +219,7 @@ python buildhistory_emit_pkghistory() { pr = d.getVar('PR') layer = bb.utils.get_file_layer(d.getVar('FILE'), d) + maintainer = d.getVar('MAINTAINER') or '' pkgdata_dir = d.getVar('PKGDATA_DIR') packages = "" try: @@ -251,6 +256,7 @@ python buildhistory_emit_pkghistory() { rcpinfo.pe = pe rcpinfo.pv = pv rcpinfo.pr = pr + rcpinfo.maintainer = maintainer rcpinfo.depends = sortlist(oe.utils.squashspaces(d.getVar('DEPENDS') or "")) rcpinfo.packages = packages rcpinfo.layer = layer @@ -270,6 +276,7 @@ python buildhistory_emit_pkghistory() { pkge = pkgdata.get('PKGE', '0') pkgv = pkgdata['PKGV'] pkgr = pkgdata['PKGR'] + pkg_maintainer = d.getVar('MAINTAINER_%s' % (pkg,), True) or maintainer # # Find out what the last version was # Make sure the version did not decrease @@ -293,6 +300,7 @@ python buildhistory_emit_pkghistory() { pkginfo.pkge = pkge pkginfo.pkgv = pkgv pkginfo.pkgr = pkgr + pkginfo.maintainer = pkg_maintainer pkginfo.rprovides = sortpkglist(oe.utils.squashspaces(pkgdata.get('RPROVIDES', ""))) pkginfo.rdepends = sortpkglist(oe.utils.squashspaces(pkgdata.get('RDEPENDS', ""))) pkginfo.rrecommends = sortpkglist(oe.utils.squashspaces(pkgdata.get('RRECOMMENDS', ""))) @@ -368,6 +376,7 @@ def write_recipehistory(rcpinfo, d): f.write(u"DEPENDS = %s\n" % rcpinfo.depends) f.write(u"PACKAGES = %s\n" % rcpinfo.packages) f.write(u"LAYER = %s\n" % rcpinfo.layer) + f.write(u"MAINTAINER = %s\n" % rcpinfo.maintainer) write_latest_srcrev(d, pkghistdir) @@ -386,6 +395,7 @@ def write_pkghistory(pkginfo, d): f.write(u"PE = %s\n" % pkginfo.pe) f.write(u"PV = %s\n" % pkginfo.pv) f.write(u"PR = %s\n" % pkginfo.pr) + f.write(u"MAINTAINER = %s\n" % pkginfo.maintainer) if pkginfo.pkg != pkginfo.name: f.write(u"PKG = %s\n" % pkginfo.pkg) -- 2.7.4 This message contains information that may be privileged or confidential and is the property of the KPIT Technologies Ltd. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. KPIT Technologies Ltd. does not accept any liability for virus infected mails.
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#149982): https://lists.openembedded.org/g/openembedded-core/message/149982 Mute This Topic: https://lists.openembedded.org/mt/81628110/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-