Updated for path stem

This commit is contained in:
Dimitris Zlatanidis 2023-04-26 12:55:50 +03:00
parent 1177d2ded7
commit 813a1f3f4a

View file

@ -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: