Re: [OE-core] [PATCH] Fix corrupted magic number in ipk on populate_sdk task

2021-06-01 Thread Tomasz Dziendzielski
Where I found the issue it was Krogoth. You're right, this "create_packages_dir" is also fixing the issue. It was really hard to reproduce the error so when creating this patch I just compared the code - it was almost the same, doing the same with the same variables, but in fact in the latest poky

Re: [OE-core] [PATCH] Fix corrupted magic number in ipk on populate_sdk task

2021-06-01 Thread Richard Purdie
On Tue, 2021-06-01 at 17:21 +0200, Tomasz Dziendzielski wrote: > If any do_package_write_ipk runs parallel with populate_sdk task it can > happen that opkg script arfile.py tries to get magic number of all > packages in DEPLOY_DIR_IPK while some package is being copied there at > the same time. Thi

[OE-core] [PATCH] Fix corrupted magic number in ipk on populate_sdk task

2021-06-01 Thread Tomasz Dziendzielski
If any do_package_write_ipk runs parallel with populate_sdk task it can happen that opkg script arfile.py tries to get magic number of all packages in DEPLOY_DIR_IPK while some package is being copied there at the same time. This results with: | AssertionError: Old ipk format (non-deb) is unsupport