darcs patch: Try to replace the index file atomically.

Duncan Coutts duncan at haskell.org
Sun Mar 2 14:49:16 EST 2008


This is only locally tested in a copy of the archive.

Sun Mar  2 19:42:01 GMT 2008  Duncan Coutts <duncan at haskell.org>
  * Try to replace the index file atomically.
  Using gzip > file means the file is created/replaced at the begining of the
  procedure, so for the period until it finishes the index file is in fact
  invalid. So re-generate the index into a temp file and then atomically rename.
  This does not make the regeneration totally atomic since while it is being
  generated, other files could be being added to the archive.

BTW, could we set the 'darcs send' email address for the hackage-scripts repo
so it works automagically. Would it also make sense for changes in the
hackage-scripts to be sent to cabal-devel, like for the Cabal and
cabal-install repos?

Duncan

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/x-darcs-patch
Size: 12956 bytes
Desc: A darcs patch for your repository!
Url : http://www.haskell.org/pipermail/cabal-devel/attachments/20080302/35e75d22/attachment.bin


More information about the cabal-devel mailing list