xbps-bin: fixed some stdout vs stderr printf issues.
--HG-- extra : convert_revision : xtraeme%40gmail.com-20100125021454-n1bh7qjy27azr9du
This commit is contained in:
parent
0ebff2c636
commit
7f343b8dbe
@ -77,11 +77,11 @@ check_binpkg_hash(const char *path, const char *filename,
|
|||||||
rv = xbps_check_file_hash(path, sha256);
|
rv = xbps_check_file_hash(path, sha256);
|
||||||
errno = rv;
|
errno = rv;
|
||||||
if (rv != 0 && rv != ERANGE) {
|
if (rv != 0 && rv != ERANGE) {
|
||||||
fprintf(stderr, "xbps-bin: unexpected error: %s\n",
|
fprintf(stderr, "\nxbps-bin: unexpected error: %s\n",
|
||||||
strerror(rv));
|
strerror(rv));
|
||||||
return false;
|
return false;
|
||||||
} else if (rv == ERANGE) {
|
} else if (rv == ERANGE) {
|
||||||
fprintf(stderr, "xbps-bin: hash mismatch!.\n");
|
printf("hash mismatch!\n");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
printf("OK.\n");
|
printf("OK.\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user