From: Ed Bartosh Date: Fri, 25 Aug 2017 20:12:28 +0000 (+0300) Subject: wic: always read image partitions X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~20204 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1186fd8fd4a4789dc7c60feb86cc9fdd03fee7b3;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git wic: always read image partitions Got rid of lazy evaluation of self.partitions property. It's not needed because partitions of the source image should be always read. Signed-off-by: Ed Bartosh Signed-off-by: Richard Purdie --- diff --git a/scripts/lib/wic/engine.py b/scripts/lib/wic/engine.py index 303f323b838..eafc6c783ec 100644 --- a/scripts/lib/wic/engine.py +++ b/scripts/lib/wic/engine.py @@ -254,12 +254,13 @@ class Disk: if not self.parted: raise WicError("Can't find executable parted") + self.partitions = self.get_partitions() + def __del__(self): for path in self._partimages.values(): os.unlink(path) - @property - def partitions(self): + def get_partitions(self): if self._partitions is None: self._partitions = OrderedDict() out = exec_cmd("%s -sm %s unit B print" % (self.parted, self.imagepath))