[squeak-dev] Re: Splitting an existing package

Frank Shearar frank.shearar at gmail.com
Tue Jul 16 21:39:58 UTC 2013


On 16 July 2013 22:30, Frank Shearar <frank.shearar at gmail.com> wrote:
> I would like to split the Compression package into its two constituent
> subpackages, Compression-Archives and Compression-Streams.
>
> Files depends on things in Compression-Archives, and
> Compression-Streams depends on Files. If I can split the package and
> replace it with the two subpackages, I can untangle this cyclic
> dependency.
>
> But how would I actually do this? I've tried making two packages, for
> instance. However, the classes still remain in Compression... as you
> can see if you try to unload the old Compression package.

One possible way goes something like this:
* Add CompressionArchives and CompressionStream packages corresponding
to the hyphenated system categories
* Push a new config map with the "new" packages
* Push the empty Compression package
* Remove the Compression package using a config map
* Rename CompressionArchives to Compression-Archives and same for Stream
* Push a third config map removing Compression and adding
Compression-Archives and Compression-Stream

> frank


More information about the Squeak-dev mailing list