Fix in install packages
This commit is contained in:
parent
8e641c0f97
commit
b9f89db78f
2 changed files with 5 additions and 1 deletions
|
|
@ -17,6 +17,10 @@ def install_package(package: dict, extra_configurations={}):
|
|||
|
||||
linux_distro=distro.id()
|
||||
|
||||
if not linux_distro in package:
|
||||
print('Sorry, not package in {}'.format(linux_distro))
|
||||
return False
|
||||
|
||||
if linux_distro=='debian' or linux_distro=='ubuntu':
|
||||
|
||||
if call('sudo DEBIAN_FRONTEND="noninteractive" apt-get install -y {}'.format(package[linux_distro]), shell=True) > 0:
|
||||
|
|
|
|||
2
setup.py
2
setup.py
|
|
@ -13,7 +13,7 @@ if sys.version_info < (3, 6):
|
|||
# If you install passlib and bcrypt, the password system will use bcrypt by default, if not, will use native crypt libc
|
||||
|
||||
setup(name='pastafariutils',
|
||||
version='0.6.1',
|
||||
version='0.6.2',
|
||||
description='Utils for make *nix scripts.',
|
||||
long_description='Utils for make *nix scripts.',
|
||||
author='Antonio de la Rosa Caballero',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue