write_main() should do a better job erroring out on write errors.
write_main() should do a better job erroring out on write errors.

cgwalters/libhif,edynox/libdnf,rpm-software-management/libhif,edynox/libdnf,hughsie/libhif,edynox/libdnf,cgwalters/libhif,cgwalters/libhif,Conan-Kudo/libhif,hughsie/libhif,rpm-software-management/libdnf,hughsie/libhif,rpm-software-management/libhif,rpm-software-management/libdnf,Conan-Kudo/libhif,Conan-Kudo/libhif,rpm-software-management/libhif,hughsie/libhif,rpm-software-management/libdnf,rpm-software-management/libhif,Conan-Kudo/libhif,edynox/libdnf,rpm-software-management/libdnf,cgwalters/libhif