b5c94a24ef
When rescue spmsync truncates the temp file to zero bytes before writing XPAK metadata, calling get_binpkg_format() triggers seek(-16, 2) on an empty file which prints an [Errno 22] stderr warning for every package. Skip the format detection when the file is empty — it can only be xpak. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>