]> code.ossystems Code Review - openembedded-core.git/commit
rpm: remove bashisms: [ x == x ] -> [ x = x ]
authorOlof Johansson <olof.johansson@axis.com>
Tue, 19 Jan 2016 13:45:32 +0000 (14:45 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 19 Jan 2016 17:39:50 +0000 (17:39 +0000)
commit4fd33ca846ba9f61e72a176a6462443c9fb5ddc2
tree774dfd0fa91ababe550c89f0cfef031264511e17
parent7e6695f4c42a642276731c13cc3abb02fc64e2b3
rpm: remove bashisms: [ x == x ] -> [ x = x ]

The postinst and postrm of rpm contained a bashism, that could in some
situations potentially cause ldconfig not be triggered when it should
be. If you use dash on host, test would fail because of syntax errors.
But on host, it should fail because of the comparison. On target, you
often use busybox ash, and it supports == as an alias for =. So in
practice, only if you use a shell like dash on target, you'll run into
issues with this.

Signed-off-by: Olof Johansson <olofjn@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/rpm/rpm_4.11.2.bb