PLZ fix it for Pharo8...

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

PLZ fix it for Pharo8...

CdAB63

In the last builds of Pharo8, CatalogBrowser comes with an easily fixable glitch... Please could someone take a look? My humble suggestion is:

===============================================================

createRepositoryURLtoNameMappings
    "Return a mapping between repositories URLs and their user names"

    <script: 'self createRepositoryURLtoNameMappings inspect'>
    |repos|
    repos := Dictionary new.   
    3 to: SystemVersion current major do: [:v |
        repos    
            at: ('http://smalltalkhub.com/mc/Pharo/MetaRepoForPharo{1}0/main' format: (Array with: v))
            put: ('Pharo{1}.0' format: (Array with: v)].
    repos at: 'http://www.squeaksource.com/MetacelloRepository' put: 'Unsorted'.       
    ^repos

================================================================


Best wishes,


Casimiro Barreto


signature.asc (673 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: PLZ fix it for Pharo8...

ducasse
Thanks Casimiro 

Why don’t you open a bug entry on github.com?


On 16 Oct 2019, at 14:53, Casimiro de Almeida Barreto <[hidden email]> wrote:

In the last builds of Pharo8, CatalogBrowser comes with an easily fixable glitch... Please could someone take a look? My humble suggestion is:

===============================================================

createRepositoryURLtoNameMappings
    "Return a mapping between repositories URLs and their user names"

    <script: 'self createRepositoryURLtoNameMappings inspect'>
    |repos|
    repos := Dictionary new.   
    3 to: SystemVersion current major do: [:v |
        repos    
            at: ('http://smalltalkhub.com/mc/Pharo/MetaRepoForPharo{1}0/main' format: (Array with: v))
            put: ('Pharo{1}.0' format: (Array with: v)].
    repos at: 'http://www.squeaksource.com/MetacelloRepository' put: 'Unsorted'.       
    ^repos

================================================================


Best wishes,


Casimiro Barreto


Reply | Threaded
Open this post in threaded view
|

Re: PLZ fix it for Pharo8...

Ben Coman
Casimiro,

I tested your change and it works well.  
btw, for such a simple change, you don't even need to connect your Pharo image to github.
Just fork the repo and make your edit directly with github's text editor at your equal location location to this...
Then submit that as a PR to leave your mark on Pharo (with a good PR description a bug entry not required).  
Could you give it a go? :) :)

cheers -ben

On Wed, 16 Oct 2019 at 22:47, ducasse <[hidden email]> wrote:
Thanks Casimiro 

Why don’t you open a bug entry on github.com?


On 16 Oct 2019, at 14:53, Casimiro de Almeida Barreto <[hidden email]> wrote:

In the last builds of Pharo8, CatalogBrowser comes with an easily fixable glitch... Please could someone take a look? My humble suggestion is:

===============================================================

createRepositoryURLtoNameMappings
    "Return a mapping between repositories URLs and their user names"

    <script: 'self createRepositoryURLtoNameMappings inspect'>
    |repos|
    repos := Dictionary new.   
    3 to: SystemVersion current major do: [:v |
        repos    
            at: ('http://smalltalkhub.com/mc/Pharo/MetaRepoForPharo{1}0/main' format: (Array with: v))
            put: ('Pharo{1}.0' format: (Array with: v)].
    repos at: 'http://www.squeaksource.com/MetacelloRepository' put: 'Unsorted'.       
    ^repos

================================================================


Best wishes,


Casimiro Barreto