From 1b5fa04f5f1f6fcbae684d277dc878ed97b151f8 Mon Sep 17 00:00:00 2001 From: Tomasz Iwanek Date: Thu, 24 Mar 2016 11:52:10 +0100 Subject: [PATCH] Modify scripts to create proper delta package for wgt-backend Always add "config.xml" and "tizen-manifest.xml" file to delta package. Change-Id: Iae8f1fa193334de8993fdf6fce3da1b7422994b6 --- CMakeLists.txt | 4 +- data/pkgmgr-create-delta.sh.in | 159 ++++++++++++++++++++++++----------------- data/pkgmgr-unzip-pkg.sh.in | 78 ++++++++++++++++++++ data/pkgmgr-unzip-tpk.sh.in | 78 -------------------- packaging/pkgmgr-tool.spec | 2 +- src/delta.c | 6 ++ src/pkg_cmd.c | 26 +++---- 7 files changed, 192 insertions(+), 161 deletions(-) create mode 100644 data/pkgmgr-unzip-pkg.sh.in delete mode 100644 data/pkgmgr-unzip-tpk.sh.in diff --git a/CMakeLists.txt b/CMakeLists.txt index bb688e6..4661309 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -73,7 +73,7 @@ INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/mime.tpk.xml DESTINATION /usr/sha CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/data/pkgmgr.patch.sh.in pkgmgr.patch.sh @ONLY) INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/pkgmgr.patch.sh DESTINATION ${SYSCONF_INSTALL_DIR}/opt/upgrade/) -CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/data/pkgmgr-unzip-tpk.sh.in pkgmgr-unzip-tpk.sh @ONLY) -INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/pkgmgr-unzip-tpk.sh DESTINATION ${SYSCONF_INSTALL_DIR}/package-manager/) +CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/data/pkgmgr-unzip-pkg.sh.in pkgmgr-unzip-pkg.sh @ONLY) +INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/pkgmgr-unzip-pkg.sh DESTINATION ${SYSCONF_INSTALL_DIR}/package-manager/) CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/data/pkgmgr-create-delta.sh.in pkgmgr-create-delta.sh @ONLY) INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/pkgmgr-create-delta.sh DESTINATION ${SYSCONF_INSTALL_DIR}/package-manager/) diff --git a/data/pkgmgr-create-delta.sh.in b/data/pkgmgr-create-delta.sh.in index 747ddc0..b22963e 100644 --- a/data/pkgmgr-create-delta.sh.in +++ b/data/pkgmgr-create-delta.sh.in @@ -4,22 +4,22 @@ usage() cat < - -b|--new_tpk= - -p|--delta_tpk= + -a|--old_pkg= + -b|--new_pkg= + -p|--delta_pkg= [-o|--option=