[squeak-dev] The Inbox: Installer-Core-cmm.380.mcz

Frank Shearar frank.shearar at gmail.com
Wed Aug 14 08:40:40 UTC 2013


On 14 August 2013 09:27, Edgar J. De Cleene <edgardec2005 at gmail.com> wrote:
>
>
>
> On 8/14/13 4:44 AM, "Frank Shearar" <frank.shearar at gmail.com> wrote:
>
>>> UUID: 565892cf-7178-4806-8fb1-63523b83de58
>>> Ancestors: Installer-Core-cmm.379
>>>
>>> Fix for using Installer with MCDirectoryRepository's.
>>>
>>> =============== Diff against Installer-Core-cmm.379 ===============
>>>
>>> Item was changed:
>>>   ----- Method: InstallerMonticello>>project: (in category 'accessing') -----
>>>   project: name
>>>
>>>         project := name.
>>>         packages := nil.
>>>
>>>         (mc respondsTo: #location:) ifTrue:[ mc := mc copy location: root ,
>>> name ].
>>> +       (mc respondsTo: #directory:) ifTrue: [ mc := mc copy directory: root
>>> / name ].
>>> -       (mc respondsTo: #directory:) ifTrue: [ mc := mc copy directory: root
>>> ,'/', name ].
>>
>> IIRC the nasty thing about this kind of bug is that it works on Linux
>> (but not on any other OS that doesn't use / as a separator, like
>> Windows).
>>
>> frank
>>
>
>
> What about using FileDirectory slash ?

FileDirectory slash returns a String containing the platform-specific
path separator, while #/ returns a new FileDirectory. So if you're
building a String, #slash is fine, but if you're working with a
FileDirectory already, #/ is what you want.

frank

> Edgar
>
>
>


More information about the Squeak-dev mailing list