From: Youngjae Cho Date: Mon, 27 May 2024 02:28:52 +0000 (+0900) Subject: packagaing: Reset the result of hal-compatibility-checker X-Git-Tag: accepted/tizen/unified/20240621.010412^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bb0bffde3e2414e5b811d5078033dc950c796bc4;p=platform%2Fhal%2Fapi%2Fdevice.git packagaing: Reset the result of hal-compatibility-checker HALCC (HAL Compatibility Checker) checks and stores the compatibility result of hal-backend package under /opt/etc/hal/ directory. When installing/un-installing hal-api packages, compatibility result between HAL manifest and hal-backend package should be reset. So that reset the result of hal-compatibility-checker by 'usr/bin/hal-compatibility-checker --reset' command. Change-Id: I531805ba0f985c842b3fd96ce03b9619d67ce6a1 Signed-off-by: Youngjae Cho Signed-off-by: Chanwoo Choi --- diff --git a/packaging/hal-api-device.spec b/packaging/hal-api-device.spec index b06022b..c32e7ab 100644 --- a/packaging/hal-api-device.spec +++ b/packaging/hal-api-device.spec @@ -50,9 +50,13 @@ mkdir -p %{buildroot}%{_sysconfdir}/hal cp %{SOURCE2} %{buildroot}%{_sysconfdir}/hal/ %make_install -%post -p /sbin/ldconfig +%post +/sbin/ldconfig +/usr/bin/hal-compatibility-checker --reset -%postun -p /sbin/ldconfig +%postun +/sbin/ldconfig +/usr/bin/hal-compatibility-checker --reset %files %manifest %{name}.manifest