Hi,

Am Sonntag, den 29.09.2013, 10:32 +0200 schrieb Joachim Breitner:
> FYI, the upgrade to hackage2 broke our watchfiles, and I do not see a
> simple fix. I opened a ticket for it:
> https://github.com/haskell/hackage-server/issues/96

the patch got accepted and is live now, so I changed all our watch files
to
        $ cat ../tools/template-debian/watch 
        version=3
        http://hackage.haskell.org/package/foo/distro-monitor 
.*-([0-9\.]+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))
which is obviously much nicer.

For reference, the change was done using:
        mass-change.sh 'Adjust watch file to new hackage layout' 'perl -i -p -e 
'\''BEGIN {undef $/}; s!^(?:# See.*)version=3.*/archive/(.*?) 
.*$!version=3\nhttp://hackage.haskell.org/package/$1/distro-monitor 
.*-([0-9\\.]+)\.(?:zip|tgz|tbz|txz|(?:tar\\.(?:gz|bz2|xz)))\n!sg'\'' watch' *

The template-debian/-directory is up-to-date; those who use cabal-debian
should probably adjust that tool.

Greetings,
Joachim

-- 
Joachim "nomeata" Breitner
Debian Developer
  [email protected] | ICQ# 74513189 | GPG-Keyid: 4743206C
  JID: [email protected] | http://people.debian.org/~nomeata


Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to