From 6b6e67f57f3bbab76e92cdb67b39a6ab7ec59305 Mon Sep 17 00:00:00 2001 From: Seth Vidal Date: Mon, 26 Apr 2010 13:58:52 -0400 Subject: [PATCH] fixme comments about try/excepting the database creation calls due to a weird issue with locks not working on a nfs mount and createreepo tracing back with a TypeError of all things --- createrepo/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/createrepo/__init__.py b/createrepo/__init__.py index ecdf5b3..0911ba1 100644 --- a/createrepo/__init__.py +++ b/createrepo/__init__.py @@ -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']: -- 2.34.1