summaryrefslogtreecommitdiffstats
path: root/usr/local/www/pkg_mgr.php
diff options
context:
space:
mode:
authorjim-p <jim@pingle.org>2009-10-06 18:01:39 -0400
committerjim-p <jim@pingle.org>2009-10-06 18:01:39 -0400
commitffba49766d29f3e7ed0c4ed2b745ca08d75eaf25 (patch)
treeffb3c3cc1f5604dc3409e1a025d77bd8505afcba /usr/local/www/pkg_mgr.php
parenta3c770648fffc7d20fa7c5c56c4461666f048974 (diff)
downloadpfsense-ffba49766d29f3e7ed0c4ed2b745ca08d75eaf25.zip
pfsense-ffba49766d29f3e7ed0c4ed2b745ca08d75eaf25.tar.gz
Add a new (unlinked) page which allows entering a custom pkg repo URL
Diffstat (limited to 'usr/local/www/pkg_mgr.php')
-rwxr-xr-xusr/local/www/pkg_mgr.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/local/www/pkg_mgr.php b/usr/local/www/pkg_mgr.php
index 62e6515..c647a4b 100755
--- a/usr/local/www/pkg_mgr.php
+++ b/usr/local/www/pkg_mgr.php
@@ -51,7 +51,8 @@ if($pkg_info) {
} else {
$using_cache = true;
if(file_exists("{$g['tmp_path']}/pkg_info.cache")) {
- $savemsg = "Unable to retrieve package info from {$g['xmlrpcbaseurl']}. Cached data will be used.";
+ $xmlrpc_base_url = isset($config['system']['altpkgrepo']['enable']) ? $config['system']['altpkgrepo']['xmlrpcbaseurl'] : $g['xmlrpcbaseurl'];
+ $savemsg = "Unable to retrieve package info from {$xmlrpc_base_url}. Cached data will be used.";
$pkg_info = unserialize(@file_get_contents("{$g['tmp_path']}/pkg_info.cache"));
} else {
$savemsg = "Unable to communicate to {$g['product_website']}. Please check DNS, default gateway, etc.";
OpenPOWER on IntegriCloud