mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-27 19:58:21 +01:00
Remove split()
This commit is contained in:
parent
15033e84d7
commit
534fbff336
1 changed files with 6 additions and 6 deletions
|
@ -163,9 +163,9 @@ class Slackbuilds(Configs):
|
||||||
os.chmod(slackbuild, 0o775)
|
os.chmod(slackbuild, 0o775)
|
||||||
|
|
||||||
if self.os_arch == 'x86_64' and self.data[sbo]['download64']:
|
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:
|
else:
|
||||||
sources: tuple = self.data[sbo]['download'].split()
|
sources: tuple = self.data[sbo]['download']
|
||||||
|
|
||||||
self.sources[sbo] = (sources, Path(self.build_path, sbo))
|
self.sources[sbo] = (sources, Path(self.build_path, sbo))
|
||||||
|
|
||||||
|
@ -182,11 +182,11 @@ class Slackbuilds(Configs):
|
||||||
path: Path = Path(self.build_path, sbo)
|
path: Path = Path(self.build_path, sbo)
|
||||||
|
|
||||||
if self.os_arch == 'x86_64' and self.data[sbo]['md5sum64']:
|
if self.os_arch == 'x86_64' and self.data[sbo]['md5sum64']:
|
||||||
checksums: list = self.data[sbo]['md5sum64'].split()
|
checksums: list = self.data[sbo]['md5sum64']
|
||||||
sources: list = self.data[sbo]['download64'].split()
|
sources: list = self.data[sbo]['download64']
|
||||||
else:
|
else:
|
||||||
checksums: list = self.data[sbo]['md5sum'].split()
|
checksums: list = self.data[sbo]['md5sum']
|
||||||
sources: list = self.data[sbo]['download'].split()
|
sources: list = self.data[sbo]['download']
|
||||||
|
|
||||||
for source, checksum in zip(sources, checksums):
|
for source, checksum in zip(sources, checksums):
|
||||||
self.check_md5.md5sum(path, source, checksum)
|
self.check_md5.md5sum(path, source, checksum)
|
||||||
|
|
Loading…
Add table
Reference in a new issue