Package: reportbug Version: 3.45 Tags: patch Hi,
The bugs.debian.org copy of the pseudo-packages' list is the canonical one now (cf. #449097), so please apply the attached patch. Mind, I think that this shouldn't be restricted to the source package's 'make checks'. Use reportbug instances should test the timestamp on their shipped copy of the pseudo-package list, and if it's older than one year, they should (offer to the user to) update it from the canonical location. It's a really small and simple file. Please fix this. TIA. -- 2. That which causes joy or happiness.
--- reportbug-3.45/checks/compare_pseudo-pkgs_lists.py.orig 2008-09-12 01:43:20.000000000 +0200 +++ reportbug-3.45/checks/compare_pseudo-pkgs_lists.py 2008-09-12 01:48:09.000000000 +0200 @@ -3,7 +3,7 @@ # License: Public domain # # Python script to compare pseudo-packages listed in reportbug -# agaists the official list on ftp-master +# agaists the official list on bugs.debian.org import sys, os sys.path = ['.'] + sys.path @@ -12,27 +12,27 @@ import urllib, re -# separete a sequence of "char not spaces", from at least one space (ftp-master uses tabs), from anything after tabs +# separete a sequence of "char not spaces", from at least one space (canonical copy uses tabs), from anything after tabs # we group the first and the latter, so we get the pseudo-packages name and description dictparse = re.compile(r'([^\s]+)\s+(.+)',re.IGNORECASE) -ftpmaster_list = {} -pseudo = urllib.urlopen('http://ftp-master.debian.org/pseudo-packages.description') +bdo_list = {} +pseudo = urllib.urlopen('http://bugs.debian.org/pseudopackages/pseudo-packages.description') for l in pseudo: m = dictparse.search(l) - ftpmaster_list[m.group(1)] = m.group(2) + bdo_list[m.group(1)] = m.group(2) bts_keys=debianbts.debother.keys(); -diff_rb_ftp = set(bts_keys)-set(ftpmaster_list) -diff_ftp_rb = set(ftpmaster_list)-set(bts_keys) +diff_rb_bdo = set(bts_keys)-set(bdo_list) +diff_bdo_rb = set(bdo_list)-set(bts_keys) -print "pseudo-pkgs in reportbug not in ftpmaster list:", diff_rb_ftp +print "pseudo-pkgs in reportbug not in bugs.debian.org list:", diff_rb_bdo -for pkg in diff_rb_ftp: +for pkg in diff_rb_bdo: print " ", pkg,": ", debianbts.debother[pkg] -print "pseudo-pkgs in ftpmaster list not in reprotbug:", diff_ftp_rb +print "pseudo-pkgs in bugs.debian.org list not in reportbug:", diff_bdo_rb -for pkg in diff_ftp_rb: - print " ", pkg,": ", ftpmaster_list[pkg] +for pkg in diff_bdo_rb: + print " ", pkg,": ", bdo_list[pkg]