Fix the problem files get removed when upgrading package 10/123110/1
authorJi-hoon Lee <dalton.lee@samsung.com>
Tue, 4 Apr 2017 08:27:24 +0000 (17:27 +0900)
committerJi-hoon Lee <dalton.lee@samsung.com>
Tue, 4 Apr 2017 11:59:08 +0000 (20:59 +0900)
commite228019934b6962b5b1e3f029f115c64ca99e0bd
treea0e94d068ee15126c064236f95d1fc6743b876fb
parentb36b013d6326eb019b193432397f8e006d63fa79
Fix the problem files get removed when upgrading package

Since the sequence of scriptlets being executed
when upgrading a rpm package is as follows,
- (pre of new package)
- (package install)
- (post of new package)
- (preun of old package)
- (removal of old package)
- (postun of old package)
files should not be removed at preun stage
unless a package upgrade is performed.
And since the previous "mv" method generates warning
when erasing package, as the installed files are
already moved to other directories, we are now using
symbolic links instead of moving files.

Change-Id: I0fd4a9173c9f74170ac05c2b0bc4f378de728195
packaging/ise-default.spec