]> git.pld-linux.org Git - projects/pld-ftp-admin.git/commitdiff
- except kernel and kernel module provider packages from cleaning
authorJan Rękorajski <baggins@pld-linux.org>
Sat, 11 Aug 2012 10:15:17 +0000 (10:15 +0000)
committerJan Rękorajski <baggins@pld-linux.org>
Sat, 11 Aug 2012 10:15:17 +0000 (10:15 +0000)
Changed files:
    wwwbin/clean-dups.py -> 1.2

wwwbin/clean-dups.py

index a46eea57cb5d7f675057b812ed84c9e408dfc5df..1436cc834a15903185e4f467c20cc485920feb76 100644 (file)
@@ -12,6 +12,26 @@ 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_NOSIGNATURES or rpm.RPMVSF_NOHDRCHK or rpm._RPMVSF_NODIGESTS or rpm.RPMVSF_NEEDPAYLOAD))
 
 def compare(f1, f2):
@@ -65,6 +85,9 @@ for file in os.listdir(dir):
        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
This page took 0.533998 seconds and 4 git commands to generate.