mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-19 10:27:07 +01:00
Updated for path stem
This commit is contained in:
parent
1177d2ded7
commit
813a1f3f4a
1 changed files with 3 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue