mirror of
https://git.yoctoproject.org/poky
synced 2026-06-10 16:10:04 +00:00
wic: get rid of set_size and set_source_file setters
Used size and source_file attributes instead of using setters. It's more pythonic, clear an consistent. (From OE-Core rev: 7cf236047fa5d0d947fd214181c9a63ccb2509ac) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
5cd222b19f
commit
2573e285d0
@@ -205,7 +205,7 @@ class BootimgPcbiosPlugin(SourcePlugin):
|
||||
out = exec_cmd(du_cmd)
|
||||
bootimg_size = out.split()[0]
|
||||
|
||||
part.set_size(bootimg_size)
|
||||
part.set_source_file(bootimg)
|
||||
part.size = int(out.split()[0])
|
||||
part.source_file = bootimg
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user