From 4f62f46fe9cc9b74e0c2c7dfaf6355f5cd0815c0 Mon Sep 17 00:00:00 2001 From: Stefan Ritter Date: Tue, 27 Oct 2009 16:57:09 +0100 Subject: Bugfixes --- wnpp-query.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/wnpp-query.py b/wnpp-query.py index 7839fe3..fc0e0af 100755 --- a/wnpp-query.py +++ b/wnpp-query.py @@ -36,9 +36,9 @@ else: url = urllib2.urlopen('http://www.debian.org/devel/wnpp/requested') for line in url: - if re.findall('bugs\.debian\.org', line) or re.match('requested(.*)ago', line) or re.match('(.*)days in preparation', line): + if re.findall('bugs\.debian\.org', line) or re.match('requested(.*)ago', line) or re.match('^(.*)days in preparation\.$', line) or re.match('^in preparation since(.*)$', line): # First line - if re.match('^.ul.(.*),', line) or re.match ('^(.*)li.(.*),', line): + if re.match('^\(.*),', line) or re.match ('^ \\,', line): # Link link = re.sub('
    ', '', line).strip() # First line starts with
      link = line[14:43] @@ -51,9 +51,12 @@ for line in url: item.append(name) # Second line - if re.match('^requested(.*)', line) or re.match('^(.*)days in preparation', line): + if re.match('^requested(.*)$', line) or re.match('^(.*)days in preparation(.*)$', line) or re.match('^in preparation since yesterday(.*)$', line): if options.itp: - days = line.split(' ')[0] + if re.match('^in preparation since yesterday', line): + days = '1' + else: + days = line.split(' ')[0] else: days = line.split(' ')[1] item.append(days) -- cgit v1.2.3