public inbox for cygwin-apps-cvs@sourceware.org help / color / mirror / Atom feed
From: Jon TURNEY <jturney@sourceware.org> To: cygwin-apps-cvs@sourceware.org Subject: [calm - Cygwin server-side packaging maintenance script] branch master, updated. 20200401-1-g7c85c8c Date: Fri, 3 Apr 2020 17:15:52 +0000 (GMT) [thread overview] Message-ID: <20200403171552.35EFA385DC07@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/calm.git;h=7c85c8c739c547aebe67476149b466071b74da45 commit 7c85c8c739c547aebe67476149b466071b74da45 Author: Jon Turney <jon.turney@dronecode.org.uk> Date: Fri Apr 3 17:26:12 2020 +0100 Fix freshness tracking for source packages Diff: --- calm/package.py | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/calm/package.py b/calm/package.py index 9697201..180a343 100755 --- a/calm/package.py +++ b/calm/package.py @@ -1319,21 +1319,14 @@ def mark_package_fresh(packages, p, v): if 'install' in packages[p].vermap[v]: packages[p].tar(v, 'install').fresh = True - if 'source' in packages[p].vermap[v]: - packages[p].tar(v, 'source').fresh = True - return - - # unless the install tarfile is empty ... - if 'install' not in packages[p].vermap[v]: - return - - if packages[p].tar(v, 'install').is_empty: - return - - # ... mark any corresponding external-source package version as also fresh + # ... mark any corresponding sibling or external-source package version as also fresh if 'external-source' in packages[p].version_hints[v]: es_p = packages[p].version_hints[v]['external-source'] - if es_p in packages: + else: + es_p = p + '-src' + + if es_p in packages: + if v in packages[es_p].vermap: if 'source' in packages[es_p].vermap[v]: packages[es_p].tar(v, 'source').fresh = True
reply other threads:[~2020-04-03 17:15 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=20200403171552.35EFA385DC07@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: linkBe 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).