Skip to content

Commit

Permalink
Accept self.info.clear() as header-only (#442)
Browse files Browse the repository at this point in the history
Signed-off-by: Uilian Ries <uilianries@gmail.com>
  • Loading branch information
uilianries authored Aug 4, 2022
1 parent 0bb78be commit 09b758a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hooks/conan-center.py
Original file line number Diff line number Diff line change
Expand Up @@ -1357,7 +1357,8 @@ def _is_recipe_header_only(conanfile):
package_id_method = getattr(conanfile, "package_id")
header_only_id = "self.info.header_only()" in inspect.getsource(package_id_method)
settings_clear = "self.info.settings.clear()" in inspect.getsource(package_id_method)
return header_only_id or without_settings or settings_clear
info_clear = "self.info.clear()" in inspect.getsource(package_id_method)
return header_only_id or without_settings or settings_clear or info_clear


def _get_settings(conanfile):
Expand Down

0 comments on commit 09b758a

Please sign in to comment.