mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-26 09:58:31 +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)
|
||||
|
||||
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)
|
||||
|
|
Loading…
Reference in a new issue