silence the noise about illegal package names in popcon

Signed-off-by: Mattia Rizzolo's avatarMattia Rizzolo <mattia@debian.org>
parent 13bdc8ff
......@@ -5,15 +5,21 @@ This script imports the popcon data into the database
See http://popcon.debian.org/
"""
import re
import aux
import sys
import gzip
import logging
from gatherer import gatherer
import re
log = logging.getLogger(__name__)
def get_gatherer(connection, config, source):
return popcon_gatherer(connection, config, source)
class popcon_gatherer(gatherer):
def __init__(self, connection, config, source):
gatherer.__init__(self, connection, config, source)
......@@ -63,8 +69,8 @@ class popcon_gatherer(gatherer):
exec 'd["%s"] = %s' % (k,k)
d['insts'] = vote + old + recent + nofiles
matches = ascii_match.match(name)
if matches == None:
print "%s:%d - illegal package name %s" % (my_config['path'], linenr, line.rstrip("\n"))
if matches is None:
log.debug("%s:%d - illegal package name %s" % (my_config['path'], linenr, line.rstrip("\n")))
continue
d['name'] = matches.group('package')
if d['name'] in votes:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment