xbps_unpack_binary_pkg: fix previous and also handle ERANGE after unlink.

This commit is contained in:
Juan RP 2011-06-25 18:19:56 +02:00
parent f29bbc7029
commit fe2bbb675f

View File

@ -167,6 +167,7 @@ remove_file_wrong_hash(prop_dictionary_t d, const char *file)
(void)unlink(file); (void)unlink(file);
xbps_warn_printf("Removed `%s' entry with " xbps_warn_printf("Removed `%s' entry with "
"unmatched hash.\n", file); "unmatched hash.\n", file);
rv = 0;
} else if (rv == ENOENT) { } else if (rv == ENOENT) {
/* simply ignore */ /* simply ignore */
rv = 0; rv = 0;