summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe
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 14:37:41 +0000
commit32483f05628b179ef286828cd336ab8c0a73a3d9 (patch)
treecc522325e691d95abf385df4b59bcb06b55b9be6 /meta/lib/oe
parentc569fcee0891251ae840c2a25f12a7faedf0fc1a (diff)
downloadpoky-32483f05628b179ef286828cd336ab8c0a73a3d9.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. (From OE-Core rev: 406d025a15ff15a2edf39f00e0ea4e6b821b224a) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe')
-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)
307 if chg.path == chg2.path or os.path.dirname(chg.path) == chg2.path: 307 if chg.path == chg2.path or os.path.dirname(chg.path) == chg2.path:
308 if chg2.fieldname in related_fields.get(chg.fieldname, []): 308 if chg2.fieldname in related_fields.get(chg.fieldname, []):
309 chg.related.append(chg2) 309 chg.related.append(chg2)
310 elif chg.path.startswith('packages/') and chg2.fieldname in ['PE', 'PV', 'PR']: 310 elif chg.path == chg2.path and chg.path.startswith('packages/') and chg2.fieldname in ['PE', 'PV', 'PR']:
311 chg.related.append(chg2) 311 chg.related.append(chg2)
312 312
313 if report_all: 313 if report_all: