[projects/pld-ftp-admin] clean-dups.py: old changes
glen
glen at pld-linux.org
Mon Jul 21 15:10:53 CEST 2014
commit 385a604868d846ec6d65fd364220d77be1773031
Author: Elan Ruusamäe <glen at pld-linux.org>
Date: Mon Oct 28 15:11:48 2013 +0200
clean-dups.py: old changes
wwwbin/clean-dups.py | 54 ++++++++++++++++++++++++++++++++--------------------
1 file changed, 33 insertions(+), 21 deletions(-)
---
diff --git a/wwwbin/clean-dups.py b/wwwbin/clean-dups.py
old mode 100644
new mode 100755
index 464c2f4..003b538
--- a/wwwbin/clean-dups.py
+++ b/wwwbin/clean-dups.py
@@ -12,27 +12,38 @@ re_rpm = re.compile(r'.*\.rpm$')
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:
@@ -112,4 +123,5 @@ for file in os.listdir(dir):
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)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/projects/pld-ftp-admin.git/commitdiff/f07c3a5eecf16f76d17279559f799d62c6235321
More information about the pld-cvs-commit
mailing list