packaging: fix rpm scriptlet error 24/130824/3 accepted/tizen/base/20170609.214703 submit/tizen_base/20170609.084421
authorChan Lee <chan45.lee@samsung.com>
Wed, 24 May 2017 06:00:06 +0000 (15:00 +0900)
committerChan Lee <chan45.lee@samsung.com>
Thu, 1 Jun 2017 03:39:07 +0000 (12:39 +0900)
commit44652613c26e39f50aa21d7382e1e8c00b5700e1
tree2f8cef3ec52c2c491900dbab39f923e07d50b046
parent2f7e7fc026c9294b6e8269b3acb1bc67de97ac7a
packaging: fix rpm scriptlet error

One line bash condition in a rpm script could cause scriptlet error like
below,
"warning: %post(qemu-accel-XXXX) scriptlet failed, exit status 1"
because '[ ]' returns with 1 exit status when the expression parameter is false.

You can refer to following page,
https://en.wikipedia.org/wiki/Test_(Unix)#Exit_status

Currently the condition is useless so it could be removed.

Change-Id: I25ae94ec7ad1f98bd84a127ea8a6a5c7aab21e32
Signed-off-by: Chan Lee <chan45.lee@samsung.com>
packaging/qemu-accel-aarch64.spec
packaging/qemu-accel-armv7l.spec
packaging/qemu-accel.spec.in