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:
Scott Ullrich 2006-01-25 03:41:21 +00:00
parent 57abc4f0a9
commit 9d806dcd94

View File

@ -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.");