fix up Read instance incompatability caused by recent commit
authorJoey Hess <joeyh@joeyh.name>
Fri, 24 Feb 2017 22:51:57 +0000 (18:51 -0400)
committerJoey Hess <joeyh@joeyh.name>
Fri, 24 Feb 2017 22:59:12 +0000 (18:59 -0400)
commit27eca014beb6ebbe9f6ea12b189377375e31a5ad
tree215c3a7afcad8cdefcb216e9ac68b02fe445f365
parent634a485b500513634743f7ef0ed51e85b8dc5ac9
fix up Read instance incompatability caused by recent commit

9c4650358ca85a298b747bb897dbf4f8f891fa22 changed the Read instance for
Key.

I've checked all uses of that instance (by removing it and seeing what
breaks), and they're all limited to the webapp, except one.
That is GitAnnexDistribution's Read instance.

So, 9c4650358ca85a298b747bb897dbf4f8f891fa22 would have broken upgrades
of git-annex from downloads.kitenet.net. Once the .info files there got
updated for a new release, old releases would have failed to parse them
and never upgraded.

To fix this, I found a way to make the .info files that contain
GitAnnexDistribution values be readable by the old version of git-annex.

This commit was sponsored by Ewen McNeill.
Assistant/Upgrade.hs
Build/DistributionUpdate.hs
Command/Info.hs
Logs/Transfer.hs
Types/Distribution.hs
Types/Transfer.hs