commit before linking to release db locks
This commit is contained in:
parent
4c2cce0246
commit
d2098b79b7
1 changed files with 5 additions and 0 deletions
|
|
@ -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']:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue