From: Seth Vidal Date: Mon, 26 Apr 2010 17:58:52 +0000 (-0400) Subject: fixme comments about try/excepting the database creation calls due to a weird X-Git-Tag: upstream/0.9.9~20 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6b6e67f57f3bbab76e92cdb67b39a6ab7ec59305;p=tools%2Fcreaterepo.git 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 --- 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']: