marketplace: add sync_packaged_apps util