mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-24 14:12:15 +03:00
gdebi yerine dpkg ile paket yuklenilmesi saglandi
This commit is contained in:
parent
f81c8e1953
commit
3e9c690302
1 changed files with 9 additions and 5 deletions
|
@ -224,11 +224,15 @@ class Util:
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def install_with_gdebi(full_path):
|
def install_with_gdebi(full_path):
|
||||||
try:
|
command_dpkg = 'dpkg -i {0}'
|
||||||
process = subprocess.Popen('gdebi -n ' + full_path, shell=True)
|
command_dep = 'apt -f install -y'
|
||||||
process.wait()
|
commands = [command_dpkg.format(full_path),command_dep]
|
||||||
except:
|
for cmd in commands:
|
||||||
raise
|
try:
|
||||||
|
process = subprocess.Popen(cmd, shell=True)
|
||||||
|
process.wait()
|
||||||
|
except:
|
||||||
|
raise
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def install_with_apt_get(package_name, package_version=None):
|
def install_with_apt_get(package_name, package_version=None):
|
||||||
|
|
Loading…
Reference in a new issue