public inbox for cygwin-apps-cvs@sourceware.org
help / color / mirror / Atom feed
From: jturney@sourceware.org
To: cygwin-apps-cvs@sourceware.org
Subject: [calm - Cygwin server-side packaging maintenance script] branch master, updated. 20190530-16-g4d0d596
Date: Sat, 08 Jun 2019 19:23:00 -0000	[thread overview]
Message-ID: <20190608192357.60147.qmail@sourceware.org> (raw)




https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/calm.git;h=4d0d596e575b5c8c2b4b2b18645a824ebde92d28

commit 4d0d596e575b5c8c2b4b2b18645a824ebde92d28
Author: Jon Turney <jon.turney@dronecode.org.uk>
Date:   Sat Jun 8 20:18:12 2019 +0100

    Fix noarch vaulting after 5fbe4c85
    
    Fix noarch vaulting after 5fbe4c85.  Only remove a path from movelist
    once, even when the movelist contains multiple files at that path.


Diff:
---
 calm/calm.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/calm/calm.py b/calm/calm.py
index dc63eea..0ff63ec 100755
--- a/calm/calm.py
+++ b/calm/calm.py
@@ -323,13 +323,13 @@ def remove_stale_packages(args, packages):
     # for each arch.
     #
     # de-duplicate these package moves, as rather awkward workaround for that
-    moved_list = []
+    moved_list = set()
 
     def dedup(path, f):
         for prefix in ['noarch', 'src']:
             if path.startswith(prefix):
                 to_vault[prefix].add(path, f)
-                moved_list.append(path)
+                moved_list.add(path)
 
     to_vault[common_constants.ARCHES[0]].map(dedup)
 


                 reply	other threads:[~2019-06-08 19:23 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190608192357.60147.qmail@sourceware.org \
    --to=jturney@sourceware.org \
    --cc=cygwin-apps-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).