From 3e523dbeedfc6e06de62064155af7a4faa6bab5a Mon Sep 17 00:00:00 2001 From: prabuddha Date: Wed, 18 Nov 2015 17:19:32 +0530 Subject: [PATCH] added contrustor class --- php/Stack_PKG/apt.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/php/Stack_PKG/apt.php b/php/Stack_PKG/apt.php index ea3616f5..fedb2105 100644 --- a/php/Stack_PKG/apt.php +++ b/php/Stack_PKG/apt.php @@ -1,12 +1,21 @@ pkg = $data; + + print_r($this->pkg); //debugging purpose only + + } function install() { - $this->cmd = 'apt-get install '.$this->pkg ; + $this->cmd = 'apt-get install '.$this->pkg['package_name'] ; $this->execute_local(); } @@ -84,7 +93,7 @@ class APT extends PKG_MANAGER { is_installed auto_remove auto_clean - update + */