xbps-bin: fix "-C files" as mentioned in TODO.

--HG--
extra : convert_revision : 21dc44831330411f079044c47b5bc6f53c599126
This commit is contained in:
Juan RP 2009-04-03 17:15:38 +02:00
parent 5abc453952
commit b329b3be39
2 changed files with 3 additions and 7 deletions

View file

@ -288,12 +288,9 @@ show_pkg_files(prop_object_t obj, void *arg, bool *loop_done)
else
rv = xbps_check_file_hash(file, sha256);
if (rv != 0 && rv != ERANGE) {
if (sfc->destdir)
free(path);
return rv;
}
if (rv == ERANGE)
if (rv != 0 && rv != ERANGE)
printf(" (can't check: %s)", strerror(rv));
else if (rv == ERANGE)
printf(" WARNING! SHA256 HASH MISMATCH!");
printf("\n");

View file

@ -27,7 +27,6 @@ xbps-bin:
overwritting files on disk and updating required_by if required.
Perhaps change the automatic-install object to false, like pkg_install
from NetBSD do.
* Fix "-C files" command when current file cannot be read. [IN PROGRESS]
xbps-repo:
* Add support for remote repositories, requires libfetch.