Fixed for install data

This commit is contained in:
Dimitris Zlatanidis 2023-03-20 12:59:32 +02:00
parent dfc460c06b
commit 282cfd6b7c

View file

@ -99,11 +99,13 @@ class CreateData(Configs):
if line.startswith(pkg_tag[1]): if line.startswith(pkg_tag[1]):
package_mirror = line.replace(pkg_tag[1], '').strip() package_mirror = line.replace(pkg_tag[1], '').strip()
if not package_mirror.endswith('/'):
package_mirror: str = f'{package_mirror}/'
cache.append(package_mirror) cache.append(package_mirror)
if line.startswith(pkg_tag[2]): if line.startswith(pkg_tag[2]):
package_location = line.replace(pkg_tag[2], '').strip() package_location = line.replace(pkg_tag[2], '').strip()
cache.append(package_location) cache.append(package_location[1:]) # Do not install (.) dot
if line.startswith(pkg_tag[3]): if line.startswith(pkg_tag[3]):
package_size_comp = line.replace(pkg_tag[3], '').strip() package_size_comp = line.replace(pkg_tag[3], '').strip()