7 acdir = "/home/ftp/pub/Linux/PLD/dists/ac/PLD/SRPMS/SRPMS"
8 thdir = "/home/ftp/pub/Linux/PLD/dists/th/PLD/SRPMS/RPMS/"
13 ign = '^(xorg-.*|X11-.*|XcursorTheme-.*)$'
14 re_c = re.compile(ign)
16 re_n = re.compile('^(.*)-([^-]*)-([^-]*)$')
19 #f = os.popen('rpm --nomd5 --nodigest --nosignature -qp --queryformat "%{NAME}" ' + file, "r")
25 #data = struct.unpack("6B2h66s2h16s", rpmlead)
26 #name = data[8].strip()
29 name = m.group(1).strip()
32 for rpm in os.listdir(acdir):
35 acpkg.append(getname(rpm))
37 for rpm in os.listdir(thdir):
40 thpkg.append(getname(rpm))
45 print "*****************************************************"
46 print "Packages in AC repo that are not in TH repo:"
53 print "*****************************************************"
54 print "Packages in TH repo that are not in AC repo:"