xbps_unpack_binary_pkg: cosmetic changes.
--HG-- extra : convert_revision : xtraeme%40gmail.com-20091128014936-0k9pmxox7igtlfmn
This commit is contained in:
parent
494504dbec
commit
bf7ca100f6
11
lib/unpack.c
11
lib/unpack.c
@ -74,12 +74,11 @@ xbps_unpack_binary_pkg(prop_dictionary_t pkg, bool essential)
|
|||||||
ARCHIVE_READ_BLOCKSIZE)) != 0)
|
ARCHIVE_READ_BLOCKSIZE)) != 0)
|
||||||
goto out;
|
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
|
* If installation of package was successful, make sure
|
||||||
* is really on storage (if possible).
|
* its files are written in storage (if possible).
|
||||||
*/
|
*/
|
||||||
if (rv == 0) {
|
|
||||||
if (fsync(pkg_fd) == -1) {
|
if (fsync(pkg_fd) == -1) {
|
||||||
rv = errno;
|
rv = errno;
|
||||||
goto out;
|
goto out;
|
||||||
|
Loading…
Reference in New Issue
Block a user