[calm - Cygwin server-side packaging maintenance script] branch master, updated. 20180130-1-ga4adfe5

jturney-9JcytcrH/[email protected]
Newsgroups gmane.os.cygwin.cvs.apps
Message-ID <[email protected]>


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

commit a4adfe5b458781bf5b515dbcab71f1977194e11c
Author: Jon Turney <[email protected]>
Date:   Tue Jan 30 22:53:48 2018 +0000

    Don't suppress empty depends2: when that could cause problems
    
    Don't suppress empty depends2: if there might be a preceeding non-empty
    depends2: or requires:
    
    This is neccessary to ensure setup's parsing code doesn't re-use a previous
    non-empty value for the version under consideration.


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

diff --git a/calm/package.py b/calm/package.py
index 238e048..9d73d1b 100755
--- a/calm/package.py
+++ b/calm/package.py
@@ -862,7 +862,7 @@ def write_setup_ini(args, packages, arch):
             for hints in packages[p].version_hints.values():
                 if 'requires' in hints:
                     requires = set.union(requires, hints['requires'].split())
-            # for historical reasons, empty requires are suppressed
+            # empty requires are suppressed as setup's parser can't handle that
             if requires:
                 print("requires: %s" % ' '.join(sorted(requires)), file=f)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.