summaryrefslogtreecommitdiffstats
path: root/pts-core/functions/pts-functions-install.php
diff options
context:
space:
mode:
Diffstat (limited to 'pts-core/functions/pts-functions-install.php')
-rw-r--r--pts-core/functions/pts-functions-install.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/pts-core/functions/pts-functions-install.php b/pts-core/functions/pts-functions-install.php
index 26f2c98..193ef7a 100644
--- a/pts-core/functions/pts-functions-install.php
+++ b/pts-core/functions/pts-functions-install.php
@@ -413,11 +413,21 @@ function pts_install_external_dependencies_list($identifier, &$INSTALL_OBJ)
if(empty($dependencies))
return;
- $dependencies = explode(',', $dependencies);
+ $dependencies = explode(",", $dependencies);
for($i = 0; $i < count($dependencies); $i++)
$dependencies[$i] = trim($dependencies[$i]);
+ if(!defined("PTS_EXDEP_FIRST_RUN"))
+ {
+ array_push($dependencies, "php-extras");
+
+ if(kernel_arch() == "x86_64")
+ array_push($dependencies, "linux-32bit-libraries");
+
+ define("PTS_EXDEP_FIRST_RUN", 1);
+ }
+
$vendor = pts_vendor_identifier();
if(!pts_package_generic_to_distro_name($INSTALL_OBJ, $dependencies))