This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: offering a patch- was [Setup feature query/suggestion!]
- To: "Peter Buckley" <peter dot buckley at cportcorp dot com>,"C" <C at Gryning dot com>
- Subject: Re: offering a patch- was [Setup feature query/suggestion!]
- From: "Robert Collins" <robert dot collins at itdomain dot com dot au>
- Date: Fri, 5 Oct 2001 20:35:11 +1000
- Cc: <cygwin at cygwin dot com>
- References: <001701c14cb9$cc6d4b20$821c10ac@odin> <3BBC9149.6B1443B0@cportcorp.com>
----- Original Message -----
From: "Peter Buckley" <peter.buckley@cportcorp.com>
> Rest of the list-
>
> Is this something that would be appropriate for
> setup.exe to do, or should it be a separate package?
Thats really up to whoever puts the effort in.
> Should it be a gui, or a command line thing?
Why force a choice? do both.
> I'm sure
> I could write a bash script or makefile to do this.
> Are there those on the list who would help me out by
> providing suggestions on the logic that I should use?
>
> I can envision a command like-
>
> apt-get clean /cygdrive/c/cygwin
>
> And the script would look in /cygdrive/c/cygwin
> for a "latest" and "contrib" directory, and then
> go through each package and rm the old ones. But
> rather than compare modification times or version
> numbers in the filenames, is there a sure way to
> make sure we are only removing the packages that are
> older than what is installed- maybe parsing through
> cygcheck output?
If I can offer a couple of observations:
1) There is currently no persistent storage of the install archive
directory. A patch to cygwin to make /var/cache/setup (for example) a
symlink to the location the package cache is in would achieve this in a
simple fashion.
2) The logic to parse /etc/setup.db is already present in setup.exe. So
it would be easier IMO to build a couple of options - say
"remove all files not listed in the current setup.ini" and
"remove all files that have a more recent version installed" - via
setup.exe than
to reinvent that logic (and keep it updated as setup.exe changes).
Rob
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/