summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorDavid Reyna <David.Reyna@windriver.com>2014-04-04 21:21:09 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-04-09 17:00:00 +0100
commit5a293287af999941b6add946362ea88a5c665037 (patch)
treea4ed42f35407b1e3b1d994f02c6fca10cf828c12 /bitbake
parent4b17947f24987a2523239c06d4aeea596587c76c (diff)
downloadpoky-5a293287af999941b6add946362ea88a5c665037.tar.gz
bitbake: toaster: show unique set-in files in configvar
When listing the set-in files in the configure varaible table, only show each file once in that summary view. [YOCTO #6048] (Bitbake rev: e69a57fc3302ed8fac21631ba95ea66e93b243e5) Signed-off-by: David Reyna <David.Reyna@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/toaster/toastergui/templatetags/projecttags.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/bitbake/lib/toaster/toastergui/templatetags/projecttags.py b/bitbake/lib/toaster/toastergui/templatetags/projecttags.py
index ee08ab74a9..aa1ebf8017 100644
--- a/bitbake/lib/toaster/toastergui/templatetags/projecttags.py
+++ b/bitbake/lib/toaster/toastergui/templatetags/projecttags.py
@@ -164,21 +164,25 @@ def filter_setin_files(file_list,matchstr):
164 if search == '': 164 if search == '':
165 for i in range(len(file_list)): 165 for i in range(len(file_list)):
166 if file_list[i].file_name.find(filter) >= 0: 166 if file_list[i].file_name.find(filter) >= 0:
167 htmlstr += file_list[i].file_name + "<p>" 167 if htmlstr.find(file_list[i].file_name + "<p>") < 0:
168 htmlstr += file_list[i].file_name + "<p>"
168 return htmlstr 169 return htmlstr
169 170
170 # match only search string, plus always last file 171 # match only search string, plus always last file
171 if filter == "": 172 if filter == "":
172 for i in range(len(file_list)-1): 173 for i in range(len(file_list)-1):
173 if file_list[i].file_name.find(search) >= 0: 174 if file_list[i].file_name.find(search) >= 0:
174 htmlstr += file_list[i].file_name + "<p>" 175 if htmlstr.find(file_list[i].file_name + "<p>") < 0:
175 htmlstr += file_list[len(file_list)-1].file_name 176 htmlstr += file_list[i].file_name + "<p>"
177 if htmlstr.find(file_list[len(file_list)-1].file_name) < 0:
178 htmlstr += file_list[len(file_list)-1].file_name
176 return htmlstr 179 return htmlstr
177 180
178 # match filter or search string 181 # match filter or search string
179 for i in range(len(file_list)): 182 for i in range(len(file_list)):
180 if (file_list[i].file_name.find(filter) >= 0) or (file_list[i].file_name.find(search) >= 0): 183 if (file_list[i].file_name.find(filter) >= 0) or (file_list[i].file_name.find(search) >= 0):
181 htmlstr += file_list[i].file_name + "<p>" 184 if htmlstr.find(file_list[i].file_name + "<p>") < 0:
185 htmlstr += file_list[i].file_name + "<p>"
182 return htmlstr 186 return htmlstr
183 187
184 188