summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/buildhistory.bbclass18
1 files changed, 8 insertions, 10 deletions
diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass
index 2db9145abd..6e5de0ef69 100644
--- a/meta/classes/buildhistory.bbclass
+++ b/meta/classes/buildhistory.bbclass
@@ -318,16 +318,14 @@ def write_pkghistory(pkginfo, d):
318 f.write(u"PV = %s\n" % pkginfo.pv) 318 f.write(u"PV = %s\n" % pkginfo.pv)
319 f.write(u"PR = %s\n" % pkginfo.pr) 319 f.write(u"PR = %s\n" % pkginfo.pr)
320 320
321 pkgvars = {} 321 if pkginfo.pkg != pkginfo.name:
322 pkgvars['PKG'] = pkginfo.pkg if pkginfo.pkg != pkginfo.name else '' 322 f.write(u"PKG = %s\n" % pkginfo.pkg)
323 pkgvars['PKGE'] = pkginfo.pkge if pkginfo.pkge != pkginfo.pe else '' 323 if pkginfo.pkge != pkginfo.pe:
324 pkgvars['PKGV'] = pkginfo.pkgv if pkginfo.pkgv != pkginfo.pv else '' 324 f.write(u"PKGE = %s\n" % pkginfo.pkge)
325 pkgvars['PKGR'] = pkginfo.pkgr if pkginfo.pkgr != pkginfo.pr else '' 325 if pkginfo.pkgv != pkginfo.pv:
326 for pkgvar in pkgvars: 326 f.write(u"PKGV = %s\n" % pkginfo.pkgv)
327 val = pkgvars[pkgvar] 327 if pkginfo.pkgr != pkginfo.pr:
328 if val: 328 f.write(u"PKGR = %s\n" % pkginfo.pkgr)
329 f.write(u"%s = %s\n" % (pkgvar, val))
330
331 f.write(u"RPROVIDES = %s\n" % pkginfo.rprovides) 329 f.write(u"RPROVIDES = %s\n" % pkginfo.rprovides)
332 f.write(u"RDEPENDS = %s\n" % pkginfo.rdepends) 330 f.write(u"RDEPENDS = %s\n" % pkginfo.rdepends)
333 f.write(u"RRECOMMENDS = %s\n" % pkginfo.rrecommends) 331 f.write(u"RRECOMMENDS = %s\n" % pkginfo.rrecommends)