xbps-bin: return a proper error when dict == NULL && rv != ENOENT.

--HG--
extra : convert_revision : f51b4fcda1497cd9aa640cb3db48080806fe497a
This commit is contained in:
Juan RP 2009-02-16 22:19:10 +01:00
parent 524551eee8
commit 82a9667049
1 changed files with 2 additions and 1 deletions

View File

@ -170,8 +170,9 @@ main(int argc, char **argv)
if (dict == NULL && errno == ENOENT)
printf("Unable to locate %s in "
"repository pool.\n", argv[1]);
else
else if (dict && errno == ENOENT)
show_missing_deps(dict, argv[1]);
exit(EXIT_FAILURE);
}
printf("Package %s installed successfully.\n", argv[1]);