mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-30 14:14:37 +01:00
Fixed the total matches problem.
This commit is contained in:
parent
6560f9e7ae
commit
861e29c391
@ -341,6 +341,9 @@ class Http(callbacks.Privmsg):
|
||||
(package, branch))
|
||||
html = fd.read()
|
||||
fd.close()
|
||||
m = self._debnumpkgsre.search(html)
|
||||
if m:
|
||||
numberOfPackages = m.group(1)
|
||||
m = self._debtablere.search(html)
|
||||
if m is None:
|
||||
responses.append('No package found for: %s (%s)' % \
|
||||
@ -348,9 +351,6 @@ class Http(callbacks.Privmsg):
|
||||
else:
|
||||
tableData = m.group(1)
|
||||
rows = tableData.split('</TR>')
|
||||
m = self._debnumpkgsre.search(tableData)
|
||||
if m:
|
||||
numberOfPackages += int(m.group(1))
|
||||
for row in rows:
|
||||
pkgMatch = self._debpkgre.search(row)
|
||||
brMatch = self._debbrre.search(row)
|
||||
|
Loading…
Reference in New Issue
Block a user