xbps_unpack_binary_pkg: cosmetic changes.

--HG--
extra : convert_revision : xtraeme%40gmail.com-20091128014936-0k9pmxox7igtlfmn
This commit is contained in:
Juan RP 2009-11-28 02:49:36 +01:00
parent 494504dbec
commit bf7ca100f6

View File

@ -74,12 +74,11 @@ xbps_unpack_binary_pkg(prop_dictionary_t pkg, bool essential)
ARCHIVE_READ_BLOCKSIZE)) != 0)
goto out;
rv = unpack_archive_fini(ar, pkg, essential);
if ((rv = unpack_archive_fini(ar, pkg, essential)) == 0) {
/*
* If installation of package was successful, make sure the package
* is really on storage (if possible).
* If installation of package was successful, make sure
* its files are written in storage (if possible).
*/
if (rv == 0) {
if (fsync(pkg_fd) == -1) {
rv = errno;
goto out;