From: Dodji Seketeli Date: Wed, 15 Feb 2023 15:26:20 +0000 (+0100) Subject: tools-utils: Support kernel stablelist X-Git-Tag: upstream/2.3~49 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0c1936eecc777d2c5717f88430365b9dcc989f7a;p=platform%2Fupstream%2Flibabigail.git tools-utils: Support kernel stablelist Up until now, a kernel whitelist was expected to be a ini file with a section having a name ending with the word "whitelist". Nowadays, they are called "stablelist", so the name of the section ends up with "stablelist". This patch makes gen_suppr_spec_from_kernel_abi_whitelists support that. * src/abg-tools-utils.cc (gen_suppr_spec_from_kernel_abi_whitelists): Support section name that ends with the word 'stablelist'. Signed-off-by: Dodji Seketeli --- diff --git a/src/abg-tools-utils.cc b/src/abg-tools-utils.cc index 85719cdc..94dd8d05 100644 --- a/src/abg-tools-utils.cc +++ b/src/abg-tools-utils.cc @@ -2151,7 +2151,8 @@ gen_suppr_spec_from_kernel_abi_whitelists ++section_iter) { std::string section_name = (*section_iter)->get_name(); - if (!string_ends_with(section_name, "whitelist")) + if (!string_ends_with(section_name, "whitelist") + && !string_ends_with(section_name, "stablelist")) continue; for (ini::config::properties_type::const_iterator prop_iter = (*section_iter)->get_properties().begin(),