mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-18 10:26:29 +01:00
fix 'index error' splitting empty files
This commit is contained in:
parent
143717e298
commit
c032848854
1 changed files with 1 additions and 1 deletions
|
@ -126,7 +126,7 @@ class Patches(object):
|
|||
black = BlackList().packages()
|
||||
for name, loc, comp, uncomp in zip(data[0], data[1], data[2], data[3]):
|
||||
inst_pkg = find_package(split_package(name)[0] + "-", pkg_path)
|
||||
if (inst_pkg[0] and not os.path.isfile(pkg_path + name[:-4]) and
|
||||
if (inst_pkg and not os.path.isfile(pkg_path + name[:-4]) and
|
||||
split_package(''.join(inst_pkg[0])) not in black):
|
||||
dwn.append("{0}{1}/{2}".format(mirrors("", ""), loc, name))
|
||||
comp_sum.append(comp)
|
||||
|
|
Loading…
Reference in a new issue