Fix in install packages
This commit is contained in:
parent
b9f89db78f
commit
8cb53e725e
2 changed files with 8 additions and 2 deletions
|
|
@ -29,7 +29,7 @@ def install_package(package: dict, extra_configurations={}):
|
||||||
|
|
||||||
elif linux_distro=='rocky' or linux_distro=='fedora' or linux_distro=='almalinux':
|
elif linux_distro=='rocky' or linux_distro=='fedora' or linux_distro=='almalinux':
|
||||||
|
|
||||||
if call("sudo dnf install -y {}", shell=True) > 0:
|
if call("sudo dnf install -y {}".format(package[linux_distro]), shell=True) > 0:
|
||||||
print('Error, cannot install {}...'.format(package[linux_distro]))
|
print('Error, cannot install {}...'.format(package[linux_distro]))
|
||||||
return False
|
return False
|
||||||
if linux_distro=='arch':
|
if linux_distro=='arch':
|
||||||
|
|
@ -41,3 +41,9 @@ def install_package(package: dict, extra_configurations={}):
|
||||||
def change_config_file(config_file: dict):
|
def change_config_file(config_file: dict):
|
||||||
|
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
# A simple function for fill an array for every distros with the same package name.
|
||||||
|
|
||||||
|
def fill_all_distros_package():
|
||||||
|
|
||||||
|
pass
|
||||||
|
|
|
||||||
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
|
# If you install passlib and bcrypt, the password system will use bcrypt by default, if not, will use native crypt libc
|
||||||
|
|
||||||
setup(name='pastafariutils',
|
setup(name='pastafariutils',
|
||||||
version='0.6.2',
|
version='0.6.3',
|
||||||
description='Utils for make *nix scripts.',
|
description='Utils for make *nix scripts.',
|
||||||
long_description='Utils for make *nix scripts.',
|
long_description='Utils for make *nix scripts.',
|
||||||
author='Antonio de la Rosa Caballero',
|
author='Antonio de la Rosa Caballero',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue