mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-29 10:26:12 +01:00
Fixed unused argument
This commit is contained in:
parent
18107bd9c7
commit
adb3143c82
1 changed files with 5 additions and 5 deletions
|
@ -74,20 +74,20 @@ class Regex(object):
|
|||
for d in data:
|
||||
if pr[1].startswith("*") and pr[1].endswith("*"):
|
||||
if pr[1][1:-1] in d:
|
||||
lib.append(self.add(pr[0], d, lib))
|
||||
lib.append(self.add(pr[0], d))
|
||||
elif pr[1].endswith("*"):
|
||||
if d.startswith(pr[1][:-1]):
|
||||
lib.append(self.add(pr[0], d, lib))
|
||||
lib.append(self.add(pr[0], d))
|
||||
elif pr[1].startswith("*"):
|
||||
if d.endswith(pr[1][1:]):
|
||||
lib.append(self.add(pr[0], d, lib))
|
||||
lib.append(self.add(pr[0], d))
|
||||
else:
|
||||
lib.append(self.add(pr[0], d, lib))
|
||||
lib.append(self.add(pr[0], d))
|
||||
else:
|
||||
lib += pkg.split()
|
||||
return lib
|
||||
|
||||
def add(self, repo, pkg, lib):
|
||||
def add(self, repo, pkg):
|
||||
"""Split packages by repository
|
||||
"""
|
||||
if repo == "sbo":
|
||||
|
|
Loading…
Reference in a new issue