Metacello and file repositories

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

Metacello and file repositories

Torsten Bergmann
Mariano wrote:
>What about using "FileDirectory slash" ?

You dont seem to understand the issue. On Linux
and Mac you can write
 
  /home/foo/test

in your spec but on Windows you will never start a
folder name with a slash since you typically write the drive
letter first:

  c:/temp/foo

Therefore the test in #extractTypeFromDescription: who checks

 (description beginsWith: '/') ifTrue: [ ^'directory' ].

works only for mac/linux folders. For the Windows folder
name it will return false and therefore lead to an HTTP Repo
which later crashes since you can download from http://c:/temp/foo

By extending #extractTypeFromDescription: like this

((description beginsWith: '/') or: [description second = $:]) ifTrue: [ ^'directory' ].

it will work on Windows too.

It's now fixed in Metacello-Core-tbn.362 on http://seaside.gemstone.com/ss/metacello

Thanks
Bye
T.


--
GMX DSL: Internet-, Telefon- und Handy-Flat ab 19,99 EUR/mtl.  
Bis zu 150 EUR Startguthaben inklusive! http://portal.gmx.net/de/go/dsl

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project