patch applied (hackage-server): "Add CSV GET/PUT for download counts" and 1 others

devnull at devnull at
Fri Aug 2 09:21:57 CEST 2013

Fri Aug  2 08:07:12 BST 2013  Edsko de Vries <edsko at>
  * Add CSV GET/PUT for download counts
  Ignore-this: 6197edc61503a140f00e678819162eda
  The on-disk stats can now be accessed (GET/PUT) through
  PUTting download counts also updates the recent downloads cache and
  reconstructs the global log; however, "today's" download counts are unaffected
  (that doesn't mean you cannot PUT downloads with today's date, of course).
  Also updated the ImportClient to take advantage of this new resource.
  Couple of minor other changes:
  - Fixed a bug in the putState for on-disk statistics: when the newly PUT
    download counts did not include *any* download counts for a package that
    *did* have download counts in a previously PUT package, then the file
    recording the download counts for that package would be left untouched. We
    now remove it. (PUTting download counts *replaces* on the on-disk stats.)
  - Fixed a bug in the list of top downloads so that the most popular packages
    is now on top.
  - Avoid unnecessary reconstruction of the global download counts log on the
    daily merging of today's download counts.
  - Change the format of the CSV to have dates rather then modified julian day

    M ./Distribution/Server/Features.hs +1
    M ./Distribution/Server/Features/Distro.hs +3
    M ./Distribution/Server/Features/DownloadCount.hs -14 +61
    M ./Distribution/Server/Features/DownloadCount/State.hs -6 +11
    M ./Distribution/Server/Features/Html.hs -1 +1
    M ./Distribution/Server/Framework/Instances.hs -4 +3
    M ./ImportClient.hs -16 +26

Fri Aug  2 08:19:18 BST 2013  Edsko de Vries <edsko at>
  * Fix import script
  Ignore-this: 53d24f8e2fcc3779eadc8c07235c2c75
  Use find/xargs to avoid passing too many arguments; add download counts; some
  other minor bits and pieces.

    M ./ -12 +21

More information about the cabal-devel mailing list