Implement RemotePackageSource.write_to