5
# License: Public domain
7
# Python script to compare pseudo-packages listed in reportbug
8
# agaists the official list on ftp-master
11
sys.path = ['.'] + sys.path
17
# separete a sequence of "char not spaces", from at least one space (ftp-master uses tabs), from anything after tabs
18
# we group the first and the latter, so we get the pseudo-packages name and description
19
dictparse = re.compile(r'([^\s]+)\s+(.+)',re.IGNORECASE)
22
pseudo = urllib.urlopen('http://ftp-master.debian.org/bzr/ftpmaster-dak/config/debian/pseudo-packages.description')
24
m = dictparse.search(l)
25
ftpmaster_list[m.group(1)] = m.group(2)
27
bts_keys=debianbts.debother.keys();
29
diff_rb_ftp = set(bts_keys)-set(ftpmaster_list)
30
diff_ftp_rb = set(ftpmaster_list)-set(bts_keys)
32
print "pseudo-pkgs in reportbug not in ftpmaster list:", diff_rb_ftp
34
for pkg in diff_rb_ftp:
35
print " ", pkg,": ", debianbts.debother[pkg]
37
print "pseudo-pkgs in ftpmaster list not in reprotbug:", diff_ftp_rb
39
for pkg in diff_ftp_rb:
40
print " ", pkg,": ", ftpmaster_list[pkg]