diff --git a/slpkg/binaries/install.py b/slpkg/binaries/install.py index db337db8..ce922e53 100644 --- a/slpkg/binaries/install.py +++ b/slpkg/binaries/install.py @@ -4,6 +4,7 @@ import os import time import subprocess +from pathlib import Path from collections import OrderedDict from multiprocessing import Process @@ -144,7 +145,7 @@ class Packages(Configs): """ Packages checksums. """ md5 = Md5sum(self.flags) for package in self.binary_packages: - name: str = self.utils.split_binary_pkg(package[:-4])[0] + name: str = self.utils.split_binary_pkg(Path(package).stem)[0] pkg_checksum: str = self.data[name][10] md5.check(self.tmp_slpkg, package, pkg_checksum) @@ -166,7 +167,7 @@ class Packages(Configs): self.multi_process(command, package, message) if not self.option_for_resolve_off: - name: str = self.utils.split_binary_pkg(package[:-4])[0] + name: str = self.utils.split_binary_pkg(Path(package).stem)[0] self.logging_installed_dependencies(name) def logging_installed_dependencies(self, name: str) -> None: