Wanted: MAC OSX users that can confirm that this patch works well.
This patch basically makes darcs using ~/.cache/darcs/ instead of
~/.darcs/cache. Unless $XDG_CACHE_HOME is set, in which case it
will use $XDG_CACHE_HOME/darcs/.
If $XDG_CACHE_HOME is set but does not exist, or if it
is not set and ~/.cache does not exist, the missing directory
is created with permissions 0700.
Under for Mac OSX, this patch makes darcs use the directory
~/Library/Caches/, which is the current norm.
The behaviour under Windows is not modified, there does not seem
to be any norm for caches.
See:
* <http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html>
* <http://bugs.darcs.net/issue2181>
2 patches for repository http://darcs.net:
Thu Jul 18 13:26:29 CEST 2013 Guillaume Hoffmann <guillaumh@gmail.com>
* merge Darcs.Util.IO into Darcs.Util.File
Thu Jul 18 14:50:04 CEST 2013 Guillaume Hoffmann <guillaumh@gmail.com>
* resolve issue2181: put cache in $XDG_CACHE_HOME (~/.cache by default)
This version fixes a warning when ~/.darcs/cache is not present.
2 patches for repository http://darcs.net:
Thu Jul 18 13:26:29 CEST 2013 Guillaume Hoffmann <guillaumh@gmail.com>
* merge Darcs.Util.IO into Darcs.Util.File
Thu Jul 18 16:03:53 CEST 2013 Guillaume Hoffmann <guillaumh@gmail.com>
* resolve issue2181: put cache in $XDG_CACHE_HOME (~/.cache by default)
This amended version used System.Info( os ) instead of CPP flags,
hence does not touch darcs.cabal.
2 patches for repository http://darcs.net:
Thu Jul 18 13:26:29 CEST 2013 Guillaume Hoffmann <guillaumh@gmail.com>
* merge Darcs.Util.IO into Darcs.Util.File
Fri Jul 19 11:17:22 CEST 2013 Guillaume Hoffmann <guillaumh@gmail.com>
* resolve issue2181: put cache in $XDG_CACHE_HOME (~/.cache by default)
With a comment about Windows detection.
2 patches for repository http://darcs.net:
Thu Jul 18 13:26:29 CEST 2013 Guillaume Hoffmann <guillaumh@gmail.com>
* merge Darcs.Util.IO into Darcs.Util.File
Fri Jul 19 12:26:01 CEST 2013 Guillaume Hoffmann <guillaumh@gmail.com>
* resolve issue2181: put cache in $XDG_CACHE_HOME (~/.cache by default)