menuselect: Use more specific error message.
Instead of using the same error message for missing dependencies and conflicts, be specific about what actually went wrong. Resolves: #520
This commit is contained in:
parent
3e069f3274
commit
f22f49e77a
|
@ -1933,14 +1933,17 @@ static int sanity_check(void)
|
||||||
fprintf(stderr, "\n"
|
fprintf(stderr, "\n"
|
||||||
"***********************************************************\n"
|
"***********************************************************\n"
|
||||||
" The existing menuselect.makeopts file did not specify \n"
|
" The existing menuselect.makeopts file did not specify \n"
|
||||||
" that '%s' should not be included. However, either some \n"
|
" that '%s' should not be included. However, \n"
|
||||||
" dependencies for this module were not found or a \n"
|
" %s%s\n"
|
||||||
" conflict exists. \n"
|
" %s.\n"
|
||||||
" \n"
|
" \n"
|
||||||
" Either run 'make menuselect' or remove the existing \n"
|
" Either run 'make menuselect' or remove the existing \n"
|
||||||
" menuselect.makeopts file to resolve this issue. \n"
|
" menuselect.makeopts file to resolve this issue. \n"
|
||||||
"***********************************************************\n"
|
"***********************************************************\n"
|
||||||
"\n", mem->name);
|
"\n", mem->name,
|
||||||
|
mem->depsfailed ? "dependencies for this module were not found" : "",
|
||||||
|
mem->depsfailed && mem->conflictsfailed ? " and" : "",
|
||||||
|
mem->conflictsfailed ? "a conflict exists" : "");
|
||||||
insane = 1;
|
insane = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue