setup.exe should remove the tar.gz files of old packages

Brian Keener bkeener@thesoftwaresource.com
Mon Nov 20 10:24:00 GMT 2000


DJ Delorie wrote:
> Perhaps the user can just delete the files they don't want?  It's not
> a big deal, and we already have more options than I'm comfortable
> with.

I think this is my preferred method.  I at one time thought it would be 
nice if we added the additional logic to cleanup latest and contrib but 
the more I have worked with setup and all that it involves, I really 
believe the cleanup should be left to the user.  As you say - what if we 
have packages which the user manually added to latest and contrib, what 
if the package is not using version numbers at this time or as in the 
case of one package I saw the version number gets changed and the new is 
actually a lesser version than the old.

> Usually, setup.ini knows about the previous stable release.  The
> tricky parts are the .gz files no longer listed in setup.ini.
>
> I suppose we could try to be clever and only remove old versions of
> *known* packages.

What with the copy of setup.ini and the installeddb and even the method 
we use to search for the tarballs on the disk we have a lot of tools 
available to look for known packages, but I still think we need to leave 
to the user or we end up having a previnstalleddb and/or adding to 
setup.ini a new classification like *obsolete*, as we have for prev, 
curr, and test.

With the way installeddb and setup.ini currently work - we don't have to 
do a lot of cleanup on them and the user can delete the tarballs as he 
sees fit.  If we try to cleanup - suddenly installeddb and setup.ini 
require more maintenance from with setup.

Just my 2 cents worth.






--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com



More information about the Cygwin mailing list