]> code.ossystems Code Review - openembedded-core.git/commit
wic: direct: add 'realnum' attribute to partition
authorEd Bartosh <ed.bartosh@linux.intel.com>
Fri, 10 Feb 2017 10:10:22 +0000 (12:10 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 16 Feb 2017 04:06:34 +0000 (20:06 -0800)
commit96a26b6ddf22346dafa06b00816579439e98445f
tree14933f7f8e37de6ca42f4fdc1636a77f52366338
parentc17353c8ec9ecb52368e08dad999aafc9ac1b734
wic: direct: add 'realnum' attribute to partition

Replaced call of _get_part_num method with an attribute.
This eliminates the need to call the method and loop over
partitions every time we need to know realnum for partition.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
scripts/lib/wic/plugins/imager/direct.py