aboutsummaryrefslogtreecommitdiffstats
path: root/meta/lib/oe/buildhistory_analysis.py
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2012-03-15 22:37:39 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-03-19 13:31:33 +0000
commit406d025a15ff15a2edf39f00e0ea4e6b821b224a (patch)
treede19be0c7b7de98637c05b56c6f26a745ce002d7 /meta/lib/oe/buildhistory_analysis.py
parent5a321f5840d4ed813e2a768871b33eff433d748c (diff)
downloadopenembedded-core-406d025a15ff15a2edf39f00e0ea4e6b821b224a.tar.gz
buildhistory_analysis: fix duplicate PE/PV/PR in related fields
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>
Diffstat (limited to 'meta/lib/oe/buildhistory_analysis.py')
-rw-r--r--meta/lib/oe/buildhistory_analysis.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oe/buildhistory_analysis.py b/meta/lib/oe/buildhistory_analysis.py
index 4f3e6359c6..d09911cb07 100644
--- a/meta/lib/oe/buildhistory_analysis.py
+++ b/meta/lib/oe/buildhistory_analysis.py
@@ -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: