Remove split()

This commit is contained in:
Dimitris Zlatanidis 2024-03-14 18:57:47 +02:00
parent 15033e84d7
commit 534fbff336

View file

@ -163,9 +163,9 @@ class Slackbuilds(Configs):
os.chmod(slackbuild, 0o775)
if self.os_arch == 'x86_64' and self.data[sbo]['download64']:
sources: tuple = self.data[sbo]['download64'].split()
sources: tuple = self.data[sbo]['download64']
else:
sources: tuple = self.data[sbo]['download'].split()
sources: tuple = self.data[sbo]['download']
self.sources[sbo] = (sources, Path(self.build_path, sbo))
@ -182,11 +182,11 @@ class Slackbuilds(Configs):
path: Path = Path(self.build_path, sbo)
if self.os_arch == 'x86_64' and self.data[sbo]['md5sum64']:
checksums: list = self.data[sbo]['md5sum64'].split()
sources: list = self.data[sbo]['download64'].split()
checksums: list = self.data[sbo]['md5sum64']
sources: list = self.data[sbo]['download64']
else:
checksums: list = self.data[sbo]['md5sum'].split()
sources: list = self.data[sbo]['download'].split()
checksums: list = self.data[sbo]['md5sum']
sources: list = self.data[sbo]['download']
for source, checksum in zip(sources, checksums):
self.check_md5.md5sum(path, source, checksum)