opkg-utils: fix bashism in opkg-build
Fix error '[[: not found' if /bin/sh is not bash. This issue was introduced by the recent addition of tar_ignore_error.patch to the opkg-utils recipe. (From OE-Core rev: 2cf2242fc30b3d1ceb538ff5106e000cd888652e) Signed-off-by: Dominic Sacré <dominic.sacre@gmx.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
5981ccff2e
commit
5d8739f52b
|
@ -32,13 +32,13 @@ Index: git/opkg-build
|
|||
+# Ignore error code 1, caused by modifying the number of hard links while creating the tar file
|
||||
+rc=0
|
||||
+( cd $pkg_dir && tar $ogargs -X $tmp_dir/tarX -cz $tarformat -f $tmp_dir/data.tar.gz . ) || rc=$?
|
||||
+if [[ $rc -ne 1 ]] && [[ $rc -ne 0 ]] ;then
|
||||
+if [ $rc -ne 1 ] && [ $rc -ne 0 ]; then
|
||||
+ exit $rc
|
||||
+fi
|
||||
+
|
||||
+rc=0
|
||||
+( cd $pkg_dir/$CONTROL && tar $ogargs -cz $tarformat -f $tmp_dir/control.tar.gz . ) || rc=$?
|
||||
+if [[ $rc -ne 1 ]] && [[ $rc -ne 0 ]] ;then
|
||||
+if [ $rc -ne 1 ] && [ $rc -ne 0 ]; then
|
||||
+ exit $rc
|
||||
+fi
|
||||
+
|
||||
|
|
Loading…
Reference in New Issue