Fix resource package install issue. 47/147747/1
authorminho.sun <minho.sun@samsung.com>
Tue, 5 Sep 2017 11:04:35 +0000 (20:04 +0900)
committerminho.sun <minho.sun@samsung.com>
Tue, 5 Sep 2017 11:04:35 +0000 (20:04 +0900)
Fix resource package install issue.

Now resource package installing/updating are fine.

Change-Id: I878b43cf9ae50ebb5b19fd49c0f7f8ff2801d069
Signed-off-by: minho.sun <minho.sun@samsung.com>
packaging/dali-toolkit.spec

index 09b93736bee7015bb658b818e269976fa63fc814..a5ee4a318c7d785bf771314976a4837b8d549c50 100644 (file)
@@ -232,19 +232,19 @@ popd
 %preun resources_480x800
 pushd %{dali_toolkit_style_files}
 mv images ./480x800
-mv *.json ./480x800
+mv dali-toolkit-default-theme.json ./480x800
 popd
 
 %preun resources_720x1280
 pushd %{dali_toolkit_style_files}
 mv images ./720x1280
-mv *.json ./720x1280
+mv dali-toolkit-default-theme.json ./720x1280
 popd
 
 %preun resources_1920x1080
 pushd %{dali_toolkit_style_files}
 mv images ./1920x1080
-mv *.json ./1920x1080
+mv dali-toolkit-default-theme.json ./1920x1080
 popd
 
 ##############################
@@ -255,19 +255,31 @@ popd
 exit 0
 
 %postun resources_480x800
-pushd %{dali_toolkit_style_files}
-rm -rf *
-popd
+case "$1" in
+  0)
+    pushd %{dali_toolkit_style_files}
+    rm -rf *
+    popd
+  ;;
+esac
 
 %postun resources_720x1280
-pushd %{dali_toolkit_style_files}
-rm -rf *
-popd
+case "$1" in
+  0)
+    pushd %{dali_toolkit_style_files}
+    rm -rf *
+    popd
+  ;;
+esac
 
 %postun resources_1920x1080
-pushd %{dali_toolkit_style_files}
-rm -rf *
-popd
+case "$1" in
+  0)
+    pushd %{dali_toolkit_style_files}
+    rm -rf *
+    popd
+  ;;
+esac
 
 ##############################
 # Files in Binary Packages