Package: qa.debian.org Severity: normal Tags: patch Currently, the PTS lists any package which it finds in new.822 as being in NEW. new.822 lists information for packages in both the NEW and accepted (aka, incoming) queues. Attached patch only uses info for packages where the Queue field is 'new'.
-- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (500, 'unstable'), (100, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.30-1-686 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash
Index: www/bin/other_to_xml.py =================================================================== --- www/bin/other_to_xml.py (revision 2224) +++ www/bin/other_to_xml.py (working copy) @@ -116,12 +116,14 @@ def read_NEW(fname): new_contents = {} for stanza in deb822.Sources.iter_paragraphs(file(os.path.join(dir, 'new.822'))): - if stanza.has_key('source') and stanza.has_key('version'): - # store only the most recent version in NEW - if not new_contents.has_key(stanza['source']) or \ - debian_support.version_compare( \ + if stanza.has_key('source') and stanza.has_key('version') and \ + stanza.has_key('queue'): + # store only the most recent version in NEW (ignore accepted) + if stanza['queue'] == 'new' and \ + (not new_contents.has_key(stanza['source']) or \ + debian_support.version_compare( \ new_contents[stanza['source']], - stanza['version']) < 0: + stanza['version']) < 0): new_contents[stanza['source']] = stanza['version'] return new_contents