mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Add <include_file> which will require_once() a file without evaling it. This will show us exactly where errors are.
MFC: soon
This commit is contained in:
parent
57abc4f0a9
commit
9d806dcd94
@ -463,6 +463,13 @@ function install_package_xml($pkg) {
|
||||
}
|
||||
fclose($fd);
|
||||
|
||||
/* if a require exists, include it. this will
|
||||
* show us where an error exists in a package
|
||||
* instead of making us blindly guess
|
||||
*/
|
||||
if($pkg_info['include_file'] <> "")
|
||||
require_once($pkg_info['include_file']);
|
||||
|
||||
/* pkg_add the package and its dependencies */
|
||||
if($pkg_info['depends_on_package_base_url'] != "") {
|
||||
update_status("Installing " . $pkg_info['name'] . " and its dependencies.");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user