This is the mail archive of the cygwin-apps mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Deleting old versions of packages

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
be deleted.

I'm thinking that the leading '-' is the easiest to implement since
it is stateless.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]