This is the mail archive of the
mailing list for the Cygwin project.
Re: Deleting old versions of packages
- From: Christopher Faylor <cgf-use-the-mailinglist-please at cygwin dot com>
- To: cygwin-apps at cygwin dot com
- Date: Thu, 14 Nov 2013 14:32:51 -0500
- Subject: Re: Deleting old versions of packages
- Authentication-results: sourceware.org; auth=none
- References: <5266FCC6 dot 7030405 at tiscali dot co dot uk> <20131023021452 dot GC8111 at ednor dot casa dot cgf dot cx> <20131028193452 dot GA5968 at ednor dot casa dot cgf dot cx> <87ppqpqh7m dot fsf at Rainer dot invalid> <20131029000336 dot GA7332 at ednor dot casa dot cgf dot cx> <87ppqnj15b dot fsf at Rainer dot invalid> <20131029205038 dot GA392 at ednor dot casa dot cgf dot cx>
- Reply-to: cygwin-apps at cygwin dot com
On Tue, Oct 29, 2013 at 04:50:38PM -0400, Christopher Faylor wrote:
>On Tue, Oct 29, 2013 at 09:02:56PM +0100, Achim Gratz wrote:
>>Leave everything as is at the upload side, but add two cleanup passes on
>>the release directory; a first that deletes zero-sized files and a
>>second that removes empty directories. That way a maintainer can
>>"upload" a file that he wants to be deleted. Then upset will see the
>>cleaned up release directory and setup.ini won't have to specify tzhe
>>exact versions of files most of the time.
>I don't think I have to worry about empty directories. Those are easy
>to purge. I was trying to avoid the zero-length file scenario but maybe
>that's the best that can be done. The ordering would have to be right
>so that upset doesn't first reference a file and then delete it of
In further consideration in the thinking room, two other ideas presented
1) Create files with a leading '-' character to flag deletion.
2) Create a !deleteme directory containing files or directories that
should be deleted. (Although empty directories can be automatically
detected and are not really an issue)
I like either of these better than the zero-length file because it
will be obvious from simple directory scanning when a file needs to
I'm thinking that the leading '-' is the easiest to implement since
it is stateless.