From 9d806dcd94053d05bfb07cf81730a03379ff3c8c Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Wed, 25 Jan 2006 03:41:21 +0000 Subject: [PATCH] Add which will require_once() a file without evaling it. This will show us exactly where errors are. MFC: soon --- etc/inc/pkg-utils.inc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/etc/inc/pkg-utils.inc b/etc/inc/pkg-utils.inc index 9be67ac643..2442c5f848 100644 --- a/etc/inc/pkg-utils.inc +++ b/etc/inc/pkg-utils.inc @@ -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.");