* Fixed a little buglet in the debversion output where the "Shown" count

would be incorrect for any time nothing was found.
This commit is contained in:
Daniel DiPaolo 2003-10-06 21:15:07 +00:00
parent 1a594b6dff
commit 8fba4a85f5

View File

@ -207,7 +207,7 @@ class Debian(callbacks.Privmsg, plugins.PeriodicFileDownloader):
numberOfPackages = m.group(1)
m = self._debtablere.search(html)
if m is None:
responses.append('No package found for: %s (%s)' % \
irc.reply(msg, 'No package found for: %s (%s)' % \
(package, branch))
else:
tableData = m.group(1)
@ -218,9 +218,9 @@ class Debian(callbacks.Privmsg, plugins.PeriodicFileDownloader):
if pkgMatch and brMatch:
s = '%s (%s)' % (pkgMatch.group(1), brMatch.group(1))
responses.append(s)
s = 'Total matches: %s, shown: %s. %s' % \
resp = 'Total matches: %s, shown: %s. %s' % \
(numberOfPackages, len(responses), ', '.join(responses))
irc.reply(msg, s)
irc.reply(msg, resp)
_incomingRe = re.compile(r'<a href="(.*?\.deb)">', re.I)
def debincoming(self, irc, msg, args):