Deleting old versions of packages
Christopher Faylor
cgf-use-the-mailinglist-please@cygwin.com
Thu Nov 14 19:33:00 GMT 2013
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
>course.
In further consideration in the thinking room, two other ideas presented
themselves:
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
be deleted.
I'm thinking that the leading '-' is the easiest to implement since
it is stateless.
cgf
More information about the Cygwin-apps
mailing list