diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2016-01-14 14:12:58 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-01-18 11:47:06 +0000 |
commit | 2573e285d01106deaedea648f7c7566020721be7 (patch) | |
tree | af1c23f9d7f87c1fda450d32402a2690e30be6c6 /scripts/lib/wic/plugins/source/bootimg-efi.py | |
parent | 5cd222b19f1a937ecc10de5db04d954d3c11eff5 (diff) | |
download | poky-2573e285d01106deaedea648f7c7566020721be7.tar.gz |
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>
Diffstat (limited to 'scripts/lib/wic/plugins/source/bootimg-efi.py')
-rw-r--r-- | scripts/lib/wic/plugins/source/bootimg-efi.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lib/wic/plugins/source/bootimg-efi.py b/scripts/lib/wic/plugins/source/bootimg-efi.py index 35afa30ea6..8bfa3a96ce 100644 --- a/scripts/lib/wic/plugins/source/bootimg-efi.py +++ b/scripts/lib/wic/plugins/source/bootimg-efi.py | |||
@@ -235,5 +235,5 @@ class BootimgEFIPlugin(SourcePlugin): | |||
235 | out = exec_cmd(du_cmd) | 235 | out = exec_cmd(du_cmd) |
236 | bootimg_size = out.split()[0] | 236 | bootimg_size = out.split()[0] |
237 | 237 | ||
238 | part.set_size(bootimg_size) | 238 | part.size = bootimg_size |
239 | part.set_source_file(bootimg) | 239 | part.source_file = bootimg |