-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installer: "Requirements problem" for missing projects assumes only modules #3924
Comments
^^ we should not be assuming that missing projects are available for download (think custom ones for example). Ideas for better wording? ...I don't like "move them" either, because it implies that they are available, but not in the right directory. |
PR up for review: backdrop/backdrop#2789 |
Other things that should be noted (separate issues):
// Get a list of projects that exist in Backdrop's assorted subdirectories.
$present_projects = array();
foreach (backdrop_system_listing('/^' . BACKDROP_PHP_FUNCTION_PATTERN . '\.module$/', 'modules', 'name', 0) as $present_module) {
$present_projects[] = $present_module->name;
}
foreach (backdrop_system_listing('/^' . BACKDROP_PHP_FUNCTION_PATTERN . '\.info$/', 'themes', 'name', 0) as $present_theme) {
$present_projects[] = $present_theme->name;
}
foreach (backdrop_system_listing('/^' . BACKDROP_PHP_FUNCTION_PATTERN . '\.info$/', 'layouts', 'name', 0) as $present_layout) {
$present_projects[] = $present_layout->name;
} ...we should be able to do something like this: // Get a list of projects that exist in Backdrop's assorted subdirectories.
$present_projects = array();
foreach (backdrop_system_listing('/^' . BACKDROP_PHP_FUNCTION_PATTERN . '\.module$/', array('modules', 'themes', 'layouts'), 'name', 0) as $present_project) {
$present_projects[] = $present_project->name;
} |
See: #3926 |
I think Backdrop "assumes only modules" because that's the only type of dependency we currently support. If/once #3926 gets in, then this issue can move forward. Making as 'blocked' until then. |
Steps To Reproduce
/profiles
directory, and add a profile in it.dependencies[] = abc123xyz
lines in the .info file of that profile.Actual behavior
Expected behavior
It should say something more generic, like "Missing dependencies" or "Required projects" instead of "Required modules".
"Required modules not found." should be "Required projects not found." instead.
This text:
...should be more like this instead:
...while at it, we should not capitalize the machine names of the projects in that list
PR by @klonos: backdrop/backdrop#2789
The text was updated successfully, but these errors were encountered: