loading with gofer without network

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

loading with gofer without network

demarey
Hi,

I'm trying to load a package (mcz) from the package cache with Gofer.
|gofer|
gofer := Gofer new
        repository: MCCacheRepository uniqueInstance;
        repository: (MCSmalltalkhubRepository owner: 'Seaside' project: 'Grease11');
        version: 'Grease-Core-JohanBrichau.94';
        disableRepositoryErrors;
        load

As you see, I gave 2 repositories (the first is local, the second one is remote) to Gofer.
If you try to execute this code without the network, it will failed! It shouldn't because the mcz is in the package cache.

I think it is a bad behavior of Gofer. It does not have to resolve references for ALL the repositories because, at the end, you only use one.
I want to change this behavior to only get the first resolved reference (no need to iterate more). If not acceptable, I could only ignore repositories not reachable (disableRepositoryErrors does not work for this use case).
Is it ok to change it?

Christophe

smime.p7s (5K) Download Attachment