]> code.ossystems Code Review - openembedded-core.git/commitdiff
buildhistory_analysis: fix duplicate PE/PV/PR in related fields
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Thu, 15 Mar 2012 22:37:39 +0000 (22:37 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 19 Mar 2012 13:31:33 +0000 (13:31 +0000)
Since PE, PV and PR appear in both the recipe history and package
history files these were showing up twice when they were added as
related fields to monitored changes. Only add them when the path is
exactly the same.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
meta/lib/oe/buildhistory_analysis.py

index 4f3e6359c660b135635ade4c55e9ad6f9c19b73c..d09911cb0752bb6273c4fa1818b32b9c8f780672 100644 (file)
@@ -307,7 +307,7 @@ def process_changes(repopath, revision1, revision2 = 'HEAD', report_all = False)
                 if chg.path == chg2.path or os.path.dirname(chg.path) == chg2.path:
                     if chg2.fieldname in related_fields.get(chg.fieldname, []):
                         chg.related.append(chg2)
-                    elif chg.path.startswith('packages/') and chg2.fieldname in ['PE', 'PV', 'PR']:
+                    elif chg.path == chg2.path and chg.path.startswith('packages/') and chg2.fieldname in ['PE', 'PV', 'PR']:
                         chg.related.append(chg2)
 
     if report_all: