patch applied (hackage-server): "Fix bug in Core.State.mergePkg"

devnull at devnull at
Fri Aug 9 16:44:06 CEST 2013

Fri Aug  9 15:41:14 BST 2013  edsko at
  * Fix bug in Core.State.mergePkg
  Ignore-this: d28cb3e4bc86cfe480f16fc1ca1e84b5
  There were a number of bugs in this function:
  - pkgUploadData of the package was not set at all
  - Sorting was incorrect
  - It incorrectly combined pkgData from the new package with pkgUploadData
    from the old
  This bug materialized as a roundtrip error for the backup of the core feature
  because it violated a database invariant (that the most recent cabal file was
  in pkgData, rather than in pkgDataOld).

    M ./Distribution/Server/Features/Core/State.hs -8 +16

More information about the cabal-devel mailing list