]> code.ossystems Code Review - openembedded-core.git/commit
wic: use // operator instead of /
authorEd Bartosh <ed.bartosh@linux.intel.com>
Wed, 4 May 2016 13:06:24 +0000 (16:06 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 14 May 2016 06:26:42 +0000 (07:26 +0100)
commit997ff239bd753a7957cc14c6829b2f093d9bcef6
tree93d5f0b713bed3ecb36fbf823e02ee1ff2472f0d
parent9658956bf8a5da779e06f71941de9b3e89415cdc
wic: use // operator instead of /

Division operator works differently in Python 3. It results in
float unlike in Python 2, where it results in int.
Explicitly used "floor division" operator instead of 'division'
operator. This should make the code to result in integer under
both pythons.

[YOCTO #9412]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/wic/filemap.py
scripts/lib/wic/utils/partitionedfs.py