From: Tomasz Iwanek Date: Wed, 30 Mar 2016 11:57:42 +0000 (+0200) Subject: Remove pkg_initdb binary X-Git-Tag: accepted/tizen/common/20160513.123201^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F09%2F64209%2F10;p=platform%2Fcore%2Fappfw%2Fpkgmgr-tool.git Remove pkg_initdb binary This binary is moved to app-installers with name "pkg_initdb". Requires to be submitted with: - https://review.tizen.org/gerrit/64204 Change-Id: I4b2d6c2291ca3753492eede9c2ebdecb1dd5416f --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 9fbd38e..f816b98 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -58,10 +58,6 @@ ADD_EXECUTABLE(pkg_clearcache src/pkg_clearcache.c) TARGET_LINK_LIBRARIES(pkg_clearcache ${pkgs_test_LDFLAGS}) INSTALL(TARGETS pkg_clearcache DESTINATION bin) -ADD_EXECUTABLE(pkg_initdb src/pkg_initdb.c) -TARGET_LINK_LIBRARIES(pkg_initdb ${pkgs_initdb_LDFLAGS}) -INSTALL(TARGETS pkg_initdb DESTINATION bin) - ADD_EXECUTABLE(install_preload_tpk src/install_preload_tpk.c) TARGET_LINK_LIBRARIES(install_preload_tpk ${pkgs_test_LDFLAGS}) INSTALL(TARGETS install_preload_tpk DESTINATION bin) diff --git a/data/10_package-manager-add.post b/data/10_package-manager-add.post index 337a4c9..aa13d61 100644 --- a/data/10_package-manager-add.post +++ b/data/10_package-manager-add.post @@ -1 +1 @@ -pkg_initdb $2 +pkg_initdb --uid $2 diff --git a/packaging/pkgmgr-tool.spec b/packaging/pkgmgr-tool.spec index 687bb36..8e1685e 100644 --- a/packaging/pkgmgr-tool.spec +++ b/packaging/pkgmgr-tool.spec @@ -27,6 +27,7 @@ BuildRequires: pkgconfig(pkgmgr-installer) BuildRequires: pkgmgr-info-parser-devel BuildRequires: pkgmgr-info-parser BuildRequires: fdupes +Requires(posttrans): /usr/bin/pkg_initdb %description Packager Manager Tool for packaging @@ -77,7 +78,6 @@ fi %dir %{_sysconfdir}/opt/upgrade %{_sysconfdir}/opt/upgrade/pkgmgr.patch.sh %{_bindir}/pkgcmd -%attr(0755,root,root) %{_bindir}/pkg_initdb %attr(755,root,root) %{_sysconfdir}/gumd/useradd.d/10_package-manager-add.post %{_bindir}/pkg_getsize %{_bindir}/pkg_clearcache