xbps-pkgdb: simplify the check code; make the reqby check work again.

This commit is contained in:
Juan RP
2012-11-17 17:43:54 +01:00
parent fcdb6b0930
commit e763f154a0
8 changed files with 70 additions and 146 deletions

View File

@ -115,8 +115,7 @@ main(int argc, char **argv)
rv = check_pkg_integrity_all(&xh);
} else {
for (i = optind; i < argc; i++) {
rv = check_pkg_integrity(&xh, NULL, argv[i],
true, NULL);
rv = check_pkg_integrity(&xh, NULL, argv[i]);
if (rv != 0)
fprintf(stderr, "Failed to check "
"`%s': %s\n", argv[i], strerror(rv));