From 3e9c690302cf71f055d14d92313b9ec9affd5c26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96mer=20=C3=87akmak?= Date: Tue, 20 Mar 2018 16:21:33 +0300 Subject: [PATCH] gdebi yerine dpkg ile paket yuklenilmesi saglandi --- src/base/util/util.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/base/util/util.py b/src/base/util/util.py index 738dbb5..897d3d6 100644 --- a/src/base/util/util.py +++ b/src/base/util/util.py @@ -224,11 +224,15 @@ class Util: @staticmethod def install_with_gdebi(full_path): - try: - process = subprocess.Popen('gdebi -n ' + full_path, shell=True) - process.wait() - except: - raise + command_dpkg = 'dpkg -i {0}' + command_dep = 'apt -f install -y' + commands = [command_dpkg.format(full_path),command_dep] + for cmd in commands: + try: + process = subprocess.Popen(cmd, shell=True) + process.wait() + except: + raise @staticmethod def install_with_apt_get(package_name, package_version=None):