pld-ftp-admin: wwwbin/clean-dups.py - except kernel and kernel module provi...
baggins
baggins at pld-linux.org
Sat Aug 11 12:15:23 CEST 2012
Author: baggins Date: Sat Aug 11 10:15:23 2012 GMT
Module: pld-ftp-admin Tag: HEAD
---- Log message:
- except kernel and kernel module provider packages from cleaning
---- Files affected:
pld-ftp-admin/wwwbin:
clean-dups.py (1.1 -> 1.2)
---- Diffs:
================================================================
Index: pld-ftp-admin/wwwbin/clean-dups.py
diff -u pld-ftp-admin/wwwbin/clean-dups.py:1.1 pld-ftp-admin/wwwbin/clean-dups.py:1.2
--- pld-ftp-admin/wwwbin/clean-dups.py:1.1 Fri May 4 08:09:41 2012
+++ pld-ftp-admin/wwwbin/clean-dups.py Sat Aug 11 12:15:17 2012
@@ -12,6 +12,26 @@
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):
@@ -63,6 +83,9 @@
for file in os.listdir(dir):
if not re_rpm.match(file):
+ continue
+
+ if ignore.match(file):
continue
m = re_nvr.match(file)
================================================================
---- CVS-web:
http://cvs.pld-linux.org/pld-ftp-admin/wwwbin/clean-dups.py?r1=1.1&r2=1.2
More information about the pld-cvs-commit
mailing list