Skip to contentSkip to conversation

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

PATCH Superseded Filip Zyzniewski 1 participant 2 messages Feb 5, 2011 – Feb 6, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rootfs_deb.bbclass: removed $(( ... )) operator usage.

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(-)
classes/rootfs_deb.bbclass +1 -1
index e077127..59072aa 100644
@@ -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
Signature · 1 line
1.7.1
#1 lore raw

PATCH v2 1/1 rootfs_deb.bbclass: removed $(( ... )) operator usage.

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(-)
classes/rootfs_deb.bbclass +1 -1
index e077127..59072aa 100644
@@ -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
Signature · 1 line
1.7.1