Fixed unused argument

This commit is contained in:
Dimitris Zlatanidis 2015-06-24 02:12:07 +03:00
parent 18107bd9c7
commit adb3143c82

View file

@ -74,20 +74,20 @@ class Regex(object):
for d in data: for d in data:
if pr[1].startswith("*") and pr[1].endswith("*"): if pr[1].startswith("*") and pr[1].endswith("*"):
if pr[1][1:-1] in d: 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("*"): elif pr[1].endswith("*"):
if d.startswith(pr[1][:-1]): 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("*"): elif pr[1].startswith("*"):
if d.endswith(pr[1][1:]): if d.endswith(pr[1][1:]):
lib.append(self.add(pr[0], d, lib)) lib.append(self.add(pr[0], d))
else: else:
lib.append(self.add(pr[0], d, lib)) lib.append(self.add(pr[0], d))
else: else:
lib += pkg.split() lib += pkg.split()
return lib return lib
def add(self, repo, pkg, lib): def add(self, repo, pkg):
"""Split packages by repository """Split packages by repository
""" """
if repo == "sbo": if repo == "sbo":