|
|
@ -120,16 +120,17 @@ class UnpackOperation:
|
|
|
|
|
|
|
|
|
|
|
|
self.mount_image(entry, imgmountdir)
|
|
|
|
self.mount_image(entry, imgmountdir)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fslist = ""
|
|
|
|
|
|
|
|
|
|
|
|
if entry.sourcefs == "squashfs":
|
|
|
|
if entry.sourcefs == "squashfs":
|
|
|
|
sqfslist = subprocess.check_output(["unsquashfs",
|
|
|
|
fslist = subprocess.check_output(["unsquashfs",
|
|
|
|
"-l",
|
|
|
|
"-l",
|
|
|
|
entry.source])
|
|
|
|
entry.source])
|
|
|
|
entry.total = len(sqfslist.splitlines())
|
|
|
|
|
|
|
|
if entry.sourcefs == "ext4":
|
|
|
|
if entry.sourcefs == "ext4":
|
|
|
|
fslist = subprocess.check_output(["find",
|
|
|
|
fslist = subprocess.check_output(["find",
|
|
|
|
imgmountdir,
|
|
|
|
imgmountdir,
|
|
|
|
"-type", "f"])
|
|
|
|
"-type", "f"])
|
|
|
|
entry.total = len(fslist.splitlines())
|
|
|
|
entry.total = len(fslist.splitlines())
|
|
|
|
|
|
|
|
|
|
|
|
self.report_progress()
|
|
|
|
self.report_progress()
|
|
|
|
error_msg = self.unpack_image(entry, imgmountdir)
|
|
|
|
error_msg = self.unpack_image(entry, imgmountdir)
|
|
|
|