summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2013-02-08 09:18:21 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-02-11 14:46:10 +0000
commit98755bd799851d971b2f81cb298be94b1e26b654 (patch)
treea8931c4f012e36b87e13e137399ee35746c7a4ec
parent0d85fa531b03f0e7b3ad3d2a5a4d92293b43b8ff (diff)
downloadpoky-98755bd799851d971b2f81cb298be94b1e26b654.tar.gz
buildhistory_analysis: handle more R* variables
Report changes to RPROVIDES, RREPLACES, and RCONFLICTS. As RSUGGESTS isn't widely used and isn't of huge concern if it changes, it is not reported by default. Implements [YOCTO #3391]. (From OE-Core rev: d20011571db96da79a8a0e056c6cef8e4c083608) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/lib/oe/buildhistory_analysis.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/meta/lib/oe/buildhistory_analysis.py b/meta/lib/oe/buildhistory_analysis.py
index 7b5ee4551a..2306bcb4bf 100644
--- a/meta/lib/oe/buildhistory_analysis.py
+++ b/meta/lib/oe/buildhistory_analysis.py
@@ -17,12 +17,12 @@ import bb.utils
17 17
18 18
19# How to display fields 19# How to display fields
20list_fields = ['DEPENDS', 'RDEPENDS', 'RRECOMMENDS', 'FILES', 'FILELIST', 'USER_CLASSES', 'IMAGE_CLASSES', 'IMAGE_FEATURES', 'IMAGE_LINGUAS', 'IMAGE_INSTALL', 'BAD_RECOMMENDATIONS'] 20list_fields = ['DEPENDS', 'RPROVIDES', 'RDEPENDS', 'RRECOMMENDS', 'RSUGGESTS', 'RREPLACES', 'RCONFLICTS', 'FILES', 'FILELIST', 'USER_CLASSES', 'IMAGE_CLASSES', 'IMAGE_FEATURES', 'IMAGE_LINGUAS', 'IMAGE_INSTALL', 'BAD_RECOMMENDATIONS']
21list_order_fields = ['PACKAGES'] 21list_order_fields = ['PACKAGES']
22defaultval_fields = ['PKG', 'PKGE', 'PKGV', 'PKGR'] 22defaultval_fields = ['PKG', 'PKGE', 'PKGV', 'PKGR']
23numeric_fields = ['PKGSIZE', 'IMAGESIZE'] 23numeric_fields = ['PKGSIZE', 'IMAGESIZE']
24# Fields to monitor 24# Fields to monitor
25monitor_fields = ['RDEPENDS', 'RRECOMMENDS', 'PACKAGES', 'FILELIST', 'PKGSIZE', 'IMAGESIZE', 'PKG', 'PKGE', 'PKGV', 'PKGR'] 25monitor_fields = ['RPROVIDES', 'RDEPENDS', 'RRECOMMENDS', 'RREPLACES', 'RCONFLICTS', 'PACKAGES', 'FILELIST', 'PKGSIZE', 'IMAGESIZE', 'PKG', 'PKGE', 'PKGV', 'PKGR']
26# Percentage change to alert for numeric fields 26# Percentage change to alert for numeric fields
27monitor_numeric_threshold = 10 27monitor_numeric_threshold = 10
28# Image files to monitor (note that image-info.txt is handled separately) 28# Image files to monitor (note that image-info.txt is handled separately)
@@ -66,7 +66,7 @@ class ChangeRecord:
66 return pkglist 66 return pkglist
67 67
68 if self.fieldname in list_fields or self.fieldname in list_order_fields: 68 if self.fieldname in list_fields or self.fieldname in list_order_fields:
69 if self.fieldname in ['RDEPENDS', 'RRECOMMENDS']: 69 if self.fieldname in ['RPROVIDES', 'RDEPENDS', 'RRECOMMENDS', 'RSUGGESTS', 'RREPLACES', 'RCONFLICTS']:
70 (depvera, depverb) = compare_pkg_lists(self.oldvalue, self.newvalue) 70 (depvera, depverb) = compare_pkg_lists(self.oldvalue, self.newvalue)
71 aitems = pkglist_combine(depvera) 71 aitems = pkglist_combine(depvera)
72 bitems = pkglist_combine(depverb) 72 bitems = pkglist_combine(depverb)
@@ -328,7 +328,7 @@ def compare_dict_blobs(path, ablob, bblob, report_all):
328 elif (not report_all) and key in list_fields: 328 elif (not report_all) and key in list_fields:
329 if key == "FILELIST" and path.endswith("-dbg") and bstr.strip() != '': 329 if key == "FILELIST" and path.endswith("-dbg") and bstr.strip() != '':
330 continue 330 continue
331 if key in ['RDEPENDS', 'RRECOMMENDS']: 331 if key in ['RPROVIDES', 'RDEPENDS', 'RRECOMMENDS', 'RSUGGESTS', 'RREPLACES', 'RCONFLICTS']:
332 (depvera, depverb) = compare_pkg_lists(astr, bstr) 332 (depvera, depverb) = compare_pkg_lists(astr, bstr)
333 if depvera == depverb: 333 if depvera == depverb:
334 continue 334 continue