commit before linking to release db locks

This commit is contained in:
Mike Bonnet 2007-05-09 18:01:01 -04:00
parent 4c2cce0246
commit d2098b79b7

View file

@ -1731,6 +1731,11 @@ def repo_init(tag, with_src=False):
fo = file(fn, 'w')
fo.write(spec)
fo.close()
# commit the transaction now so we don't hold locks in the database while we're creating
# links on the filesystem (which can take a long time)
context.cnx.commit()
#link packages
for arch in packages.iterkeys():
if arch in ['src','noarch']: