xbps-bin: return a proper error when dict == NULL && rv != ENOENT.
--HG-- extra : convert_revision : f51b4fcda1497cd9aa640cb3db48080806fe497a
This commit is contained in:
parent
524551eee8
commit
82a9667049
|
@ -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]);
|
||||
|
|
Loading…
Reference in New Issue