db: create db in the post script 93/108593/1 accepted/tizen/3.0/common/20170109.195631 accepted/tizen/3.0/ivi/20170106.094124 accepted/tizen/3.0/mobile/20170106.094025 accepted/tizen/3.0/tv/20170106.094046 accepted/tizen/3.0/wearable/20170106.094104 submit/tizen_3.0/20170105.072601
authortaeyoung <ty317.kim@samsung.com>
Thu, 5 Jan 2017 07:18:27 +0000 (16:18 +0900)
committertaeyoung <ty317.kim@samsung.com>
Thu, 5 Jan 2017 07:18:27 +0000 (16:18 +0900)
Previously, the db was created after installing all packages.
However, several packages want to use the system information
during installation. Thus the db is created once in the post
script, and db is updated after build information is created.

Change-Id: Ia4d71ac1696c5c7ed9ca6728baf8eb6b504d19e3
Signed-off-by: taeyoung <ty317.kim@samsung.com>
packaging/capi-system-info.spec

index 90e1733b0e861bd205638cbcfe7104ae40f52cde..33583b2d8dcfc23e2e6a37154a7fa636bf9db2d6 100644 (file)
@@ -76,6 +76,7 @@ mkdir -p %{buildroot}/%{sysinfo_shared_path}
 
 %post
 /usr/bin/chsmack -a "System::Shared" -t %{sysinfo_shared_path}
+/usr/bin/system_info_init_db
 /sbin/ldconfig
 
 %postun -p /sbin/ldconfig