Debian: Do not display duplicated package names in file reply.

master
Valentin Lorentz 2012-10-17 19:21:26 +00:00
parent ec754f16ec
commit cadc79986c
1 changed files with 2 additions and 0 deletions

View File

@ -97,6 +97,8 @@ class Debian(callbacks.Plugin):
irc.reply(format('No filename found for %s (%s)',
utils.web.urlunquote(filename), args['suite']))
else:
# Filter duplicated
pkgs = dict(map(lambda x:(x, None), pkgs)).keys()
irc.reply(format('%i matches found: %s (%s)',
len(pkgs), '; '.join(pkgs), args['suite']))
file = wrap(file, [getopts({'exact': '',