[oe-commits] Paul Eggleton : buildhistory_analysis: fix duplicate PE/PV/ PR in related fields

git at git.openembedded.org git at git.openembedded.org
Mon Mar 19 13:41:46 UTC 2012


Module: openembedded-core.git
Branch: master
Commit: 406d025a15ff15a2edf39f00e0ea4e6b821b224a
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=406d025a15ff15a2edf39f00e0ea4e6b821b224a

Author: Paul Eggleton <paul.eggleton at linux.intel.com>
Date:   Thu Mar 15 22:37:39 2012 +0000

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 at linux.intel.com>

---

 meta/lib/oe/buildhistory_analysis.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/meta/lib/oe/buildhistory_analysis.py b/meta/lib/oe/buildhistory_analysis.py
index 4f3e635..d09911c 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:





More information about the Openembedded-commits mailing list