Hello,

I find the implementation of MCCacheRepository(class)>>defaultDirectory a bit 
strange:
defaultDirectory
        | directories |
        directories := {('package-cache' asFileReference).      (FileLocator 
temp).     (FileLocator home)}.
        directories
                do: [ :directory | 
                        [ ^ directory ensureCreateDirectory; yourself ]
                                on: Error do: [ "ignore and try the next 
directory" ] ].
        Error signal: 'Can''t create a package-cache'
We first search in the working directory (looks good), and then we try to use 
the temporary directory or the home directory without creating any directory 
hierarchy (e.g. pharo/package-cache).
I would like to, at least,  add 'pharo/package-cache' directories for temp and 
home.

Another problem is that it is not consistent with FileLocator(class)>>cache. It 
points to the system cache directory that is not used by MCCacheRepository.

WDYT?


Christophe.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to