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_NOHDRCHK or rpm.RPMVSF_NEEDPAYLOAD or rpm.RPMVSF_NODSAHEADER))
+ignore = re.compile('^(kernel-.*)$')
+#|\
+#crash-.*|\
+#dahdi-linux-.*|\
+#e1000e-.*|\
+#igb-.*|\
+#ipset-.*|\
+#iscsitarget-.*|\
+#ixgbe-.*|\
+#kernel-net-wl-.*|\
+#lin_tape-.*|\
+#linux-fusion-.*|\
+#linuxrdac-.*|\
+#lirc-.*|\
+#lttng-modules-.*|\
+#madwifi-ng-.*|\
+#nvidiabl-.*|\
+#open-vm-tools-.*|\
+#openvswitch-.*|\
+#r8168-.*|\
+#spl-.*|\
+#tpm_emulator-.*|\
+#VirtualBox-.*|\
+#vpb-driver-.*|\
+#xorg-driver-video-fglrx-.*|\
+#xorg-driver-video-fglrx-legacy-.*|\
+#xorg-driver-video-nvidia-.*|\
+#xorg-driver-video-nvidia-legacy3-.*|\
+#xorg-driver-video-nvidia-legacy-304xx-.*|\
+#xtables-addons-.*)$')
+
+ts = rpm.TransactionSet("", (rpm.RPMVSF_NOHDRCHK or rpm.RPMVSF_NEEDPAYLOAD))
def compare(f1, f2):
try:
for i in dupes.iterkeys():
for old in find_old(dupes[i])[1:]:
+ print "removing: %s" % old
os.system("/home/pld/admins/th/pld-ftp-admin/scripts/remove.py test %s" % old)