Changed files:
wwwbin/clean-dups.py -> 1.2
re_nvr = re.compile('^(.*)-([^-]*)-([^-]*)\.rpm$')
dir = '/home/pld/admins/th/ftp/test/SRPMS/RPMS'
+ignore = re.compile('^(kernel-.*|\
+ dahdi-linux-.*|\
+ e1000e-.*|\
+ igb-.*|\
+ ipset-.*|\
+ ixgbe-.*|\
+ linuxrdac-.*|\
+ lirc-.*|\
+ madwifi-ng-.*|\
+ open-vm-tools-.*|\
+ r8168-.*|\
+ VirtualBox-.*|\
+ xorg-driver-video-fglrx-.*|\
+ xorg-driver-video-fglrx-legacy-12.x-.*|\
+ xorg-driver-video-nvidia-.*|\
+ xtables-addons-.*|\
+ iscsitarget-.*|\
+ openvswitch-.*|\
+ xorg-driver-video-nvidia-legacy3-.*)$')
+
ts = rpm.TransactionSet("", (rpm._RPMVSF_NOSIGNATURES or rpm.RPMVSF_NOHDRCHK or rpm._RPMVSF_NODIGESTS or rpm.RPMVSF_NEEDPAYLOAD))
def compare(f1, f2):
if not re_rpm.match(file):
continue
+ if ignore.match(file):
+ continue
+
m = re_nvr.match(file)
if not m:
print "problem with: %s" % file