Use fdatasync() once the package has been unpacked.

At least there will be more chances that important data has been
written to disk.

--HG--
extra : convert_revision : 251af5da3f587cad976a9f5b903e5c3bdf5a229a
This commit is contained in:
Juan RP 2008-12-28 09:48:18 +01:00
parent 4148b5e4b6
commit a00a9a52b2
2 changed files with 24 additions and 10 deletions

View file

@ -358,8 +358,7 @@ xbps_install_pkg_deps(prop_dictionary_t pkg)
prop_dictionary_get_cstring_nocopy(pkgd, "version", &version);
prop_dictionary_get_cstring_nocopy(pkgd, "short_desc", &desc);
printf("Required package: %s >= %s\n", pkgname, version);
(void)fflush(stdout);
printf(" Required package: %s >= %s\n", pkgname, version);
rv = xbps_unpack_binary_pkg(dep->repo, pkgd,
xbps_unpack_archive_cb);