From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 130890 invoked by alias); 5 Nov 2017 07:26:29 -0000 Mailing-List: contact cygwin-apps-help@cygwin.com; run by ezmlm Precedence: bulk Sender: cygwin-apps-owner@cygwin.com List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Mail-Followup-To: cygwin-apps@cygwin.com Received: (qmail 130861 invoked by uid 89); 5 Nov 2017 07:26:26 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-spam-relays-external:ESMTPA X-HELO: mx009.vodafonemail.xion.oxcs.net Received: from mx009.vodafonemail.xion.oxcs.net (HELO mx009.vodafonemail.xion.oxcs.net) (153.92.174.39) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 05 Nov 2017 07:26:20 +0000 Received: from vsmx002.vodafonemail.xion.oxcs.net (unknown [192.168.75.192]) by mta-6-out.mta.xion.oxcs.net (Postfix) with ESMTP id B8291D9B9B4 for ; Sun, 5 Nov 2017 07:26:18 +0000 (UTC) Received: from Gertrud (p5b2f359a.dip0.t-ipconnect.de [91.47.53.154]) by mta-6-out.mta.xion.oxcs.net (Postfix) with ESMTPA id 8F0BE199C7C for ; Sun, 5 Nov 2017 07:26:16 +0000 (UTC) From: Achim Gratz To: cygwin-apps@cygwin.com Subject: [RFC] calm: removal of files from release area Date: Sun, 05 Nov 2017 07:26:00 -0000 Message-ID: <877ev5mbjc.fsf@Rainer.invalid> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-VADE-STATUS: LEGIT X-SW-Source: 2017-11/txt/msg00012.txt.bz2 The removal of files from the release area is currently rather complicated as you have to specify the exact filenames to remove and need to remove all files belonging together, sometimes in multiple directories, in a single update run. An additional complication is when one of the update directories becomes empty, as the directory cannot be removed before it's empty and calm barfs on an empty directory it didn't expect. I suggest that calm gets extended to recognise files (possibly zero-length so they can be created by touch) of the pattern remove-${PVR}.hint that should be placed into the top-level directory of the package in question. Calm should then proceed to vault all files belonging to that version, possibly with no longer needed setup.hint files and then removing any empty directories created during that process. The hint file itself must not get moved to the release area. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ SD adaptations for KORG EX-800 and Poly-800MkII V0.9: http://Synth.Stromeko.net/Downloads.html#KorgSDada