make sure non-unique-md-filenanmes-repos cleanup sqlite files
authorSeth Vidal <skvidal@fedoraproject.org>
Tue, 29 Jan 2008 02:50:58 +0000 (21:50 -0500)
committerSeth Vidal <skvidal@fedoraproject.org>
Tue, 29 Jan 2008 02:50:58 +0000 (21:50 -0500)
if we switch to unique-md-filenames

createrepo/__init__.py

index 34cbeb98dded2ffd238e9c01f2eca0ce48f0a1b6..7a851da1035bb81425adbd2d6c0840d6f419ed77 100644 (file)
@@ -666,7 +666,10 @@ class MetaDataGenerator:
                     'other.xml.gz','filelists.xml.gz'):
                 os.remove(oldfile) # kill off the old ones
                 continue
-                
+            if f in ('filelists.sqlite.bz2', 'other.sqlite.bz2', 'primary.sqlite.bz2'):
+                os.remove(oldfile)
+                continue
+                    
             if os.path.exists(finalfile):
                 # Hmph?  Just leave it alone, then.
                 try: