public inbox for cygwin-apps-cvs@sourceware.org
help / color / mirror / Atom feed
* [calm - Cygwin server-side packaging maintenance script] branch master, updated. 20200401-1-g7c85c8c
@ 2020-04-03 17:15 Jon TURNEY
  0 siblings, 0 replies; only message in thread
From: Jon TURNEY @ 2020-04-03 17:15 UTC (permalink / raw)
  To: cygwin-apps-cvs




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
 



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-04-03 17:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-03 17:15 [calm - Cygwin server-side packaging maintenance script] branch master, updated. 20200401-1-g7c85c8c Jon TURNEY

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).