]> code.ossystems Code Review - openembedded-core.git/commit
populate-extfs.sh: fix to handle /var/lib/opkg/alternatives/[[ correctly
authorChen Qi <Qi.Chen@windriver.com>
Thu, 19 Jun 2014 02:11:32 +0000 (10:11 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 24 Jun 2014 09:57:32 +0000 (10:57 +0100)
commit8277c71747758e2ba0815a6f5cd11c9e0c9c90ce
treeb6814c5a223b2722bc7df0784f22c726bbb8bf62
parentb7371b49b4b83c2e864126480b65363fe9f2cfd2
populate-extfs.sh: fix to handle /var/lib/opkg/alternatives/[[ correctly

There was a patch trying to fix this problem by using 'dirname', but it
caused some build failures, thus got reverted.

The problem is that $DIR might be empty and we should first do the check
before trying to use $(dirname $DIR).

[YOCTO #5712]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/e2fsprogs/e2fsprogs-1.42.8/populate-extfs.sh