fixme comments about try/excepting the database creation calls due to a weird
authorSeth Vidal <skvidal@fedoraproject.org>
Mon, 26 Apr 2010 17:58:52 +0000 (13:58 -0400)
committerSeth Vidal <skvidal@fedoraproject.org>
Mon, 26 Apr 2010 17:58:52 +0000 (13:58 -0400)
issue with locks not working on a nfs mount and createreepo tracing back
with a TypeError of all things

createrepo/__init__.py

index ecdf5b3a0e64009aef05978799fc4ee76956a94a..0911ba11cdf40bb6c778ad99be33b8e9d576995e 100644 (file)
@@ -847,6 +847,7 @@ class MetaDataGenerator:
                 dbversion = str(sqlitecachec.DBVERSION)
             except AttributeError:
                 dbversion = '9'
+            #FIXME - in theory some sort of try/except  here
             rp = sqlitecachec.RepodataParserSqlite(repopath, repoid, None)
 
         for (rpm_file, ftype) in workfiles:
@@ -873,12 +874,16 @@ class MetaDataGenerator:
                                                                   time.ctime()))
 
                 if ftype == 'primary':
+                    #FIXME - in theory some sort of try/except  here
+                    # TypeError appears to be raised, sometimes :(
                     rp.getPrimary(complete_path, csum)
 
                 elif ftype == 'filelists':
+                    #FIXME and here
                     rp.getFilelists(complete_path, csum)
 
                 elif ftype == 'other':
+                    #FIXME and here
                     rp.getOtherdata(complete_path, csum)
 
                 if ftype in ['primary', 'filelists', 'other']: