rootfs_deb.bbclass: removed $(( ... )) operator usage.

Submitted by Filip Zyzniewski on Feb. 5, 2011, 11:03 p.m.

Details

Message ID 1296946989-20663-1-git-send-email-filip.zyzniewski@gmail.com
State Superseded
Headers show

Commit Message

Filip Zyzniewski Feb. 5, 2011, 11:03 p.m.
Bitbake's pyshlex.py cannot parse it raising NotImplementedError in
line 295 (bitbake @ c8d8388ce9662574a390be3b849c07d1b044275d).
---
 classes/rootfs_deb.bbclass |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch hide | download patch | download mbox

diff --git a/classes/rootfs_deb.bbclass b/classes/rootfs_deb.bbclass
index e077127..59072aa 100644
--- a/classes/rootfs_deb.bbclass
+++ b/classes/rootfs_deb.bbclass
@@ -35,7 +35,7 @@  fakeroot rootfs_deb_do_rootfs () {
 		echo "deb file:${DEPLOY_DIR_DEB}/$arch/ ./" >> ${STAGING_ETCDIR_NATIVE}/apt/sources.list.rev
 		(echo "Package: *"
 		echo "Pin: release l=$arch"
-		echo "Pin-Priority: $((800 + $priority))"
+		echo "Pin-Priority: $(expr 800 + $priority)"
 		echo) >> ${STAGING_ETCDIR_NATIVE}/apt/preferences
 		priority=$(expr $priority + 5)
 	done