public inbox for cygwin-apps-cvs@sourceware.org
help / color / mirror / Atom feed
* [calm - Cygwin server-side packaging maintenance script] branch master, updated. 20160705-85-g77639e2
@ 2017-06-05 14:32 jturney
0 siblings, 0 replies; only message in thread
From: jturney @ 2017-06-05 14:32 UTC (permalink / raw)
To: cygwin-apps-cvs
https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/calm.git;h=77639e2f68b7857a3deaa84ce296890970fde2fc
commit 77639e2f68b7857a3deaa84ce296890970fde2fc
Author: Jon Turney <jon.turney@dronecode.org.uk>
Date: Thu Jun 1 18:52:14 2017 +0100
Put message: with other package section keys, not after the last package version description
Diff:
---
calm/package.py | 6 +++---
test/testdata/inifile/setup.ini.expected | 8 ++++----
test/testdata/process_arch/setup.ini.expected | 8 ++++----
3 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/calm/package.py b/calm/package.py
index b0ec360..12e246a 100755
--- a/calm/package.py
+++ b/calm/package.py
@@ -766,6 +766,9 @@ def write_setup_ini(args, packages, arch):
if requires:
print("requires: %s" % ' '.join(sorted(requires)), file=f)
+ if 'message' in packages[p].version_hints[bv]:
+ print("message: %s" % packages[p].version_hints[bv]['message'], file=f)
+
# write tarfile lines for each stability level
for level in ['curr', 'prev', 'test']:
if level in packages[p].stability:
@@ -791,9 +794,6 @@ def write_setup_ini(args, packages, arch):
else:
logging.warning("package '%s' version '%s' has no source in external-source '%s'" % (p, version, s))
- if 'message' in packages[p].version_hints[bv]:
- print("message: %s" % packages[p].version_hints[bv]['message'], file=f)
-
# helper function to output details for a particular tar file
def tar_line(category, p, t, f):
diff --git a/test/testdata/inifile/setup.ini.expected b/test/testdata/inifile/setup.ini.expected
index 9300c70..c3957ca 100644
--- a/test/testdata/inifile/setup.ini.expected
+++ b/test/testdata/inifile/setup.ini.expected
@@ -170,15 +170,15 @@
'industry standard IP protocols."\n'
'category: Net\n'
'requires: libdns_sd1\n'
+ 'message: mDNSResponder "The Cygwin mDNSResponder package contains only clients.\n'
+ "If you do not already have the 'Bonjour Service' installed (it comes with\n"
+ 'a number of popular Windows programs), then you can download it at\n'
+ 'http://support.apple.com/kb/DL999"\n'
'version: 379.32.1-1\n'
'install: x86/release/mDNSResponder/mDNSResponder-379.32.1-1.tar.bz2 195 '
'aff488008bee3486e25b539fe6ccd1397bd3c5c0ba2ee2cf34af279554baa195af7493ee51d6f8510735c9a2ea54436d776a71e768165716762aec286abbbf83\n'
'source: x86/release/mDNSResponder/mDNSResponder-379.32.1-1-src.tar.bz2 195 '
'aff488008bee3486e25b539fe6ccd1397bd3c5c0ba2ee2cf34af279554baa195af7493ee51d6f8510735c9a2ea54436d776a71e768165716762aec286abbbf83\n'
- 'message: mDNSResponder "The Cygwin mDNSResponder package contains only clients.\n'
- "If you do not already have the 'Bonjour Service' installed (it comes with\n"
- 'a number of popular Windows programs), then you can download it at\n'
- 'http://support.apple.com/kb/DL999"\n'
'\n'
'@ openssh\n'
'sdesc: "The OpenSSH server and client programs"\n'
diff --git a/test/testdata/process_arch/setup.ini.expected b/test/testdata/process_arch/setup.ini.expected
index 24bd945..652e48f 100644
--- a/test/testdata/process_arch/setup.ini.expected
+++ b/test/testdata/process_arch/setup.ini.expected
@@ -170,15 +170,15 @@
'industry standard IP protocols."\n'
'category: Net\n'
'requires: libdns_sd1\n'
+ 'message: mDNSResponder "The Cygwin mDNSResponder package contains only clients.\n'
+ "If you do not already have the 'Bonjour Service' installed (it comes with\n"
+ 'a number of popular Windows programs), then you can download it at\n'
+ 'http://support.apple.com/kb/DL999"\n'
'version: 379.32.1-1\n'
'install: x86/release/mDNSResponder/mDNSResponder-379.32.1-1.tar.bz2 195 '
'aff488008bee3486e25b539fe6ccd1397bd3c5c0ba2ee2cf34af279554baa195af7493ee51d6f8510735c9a2ea54436d776a71e768165716762aec286abbbf83\n'
'source: x86/release/mDNSResponder/mDNSResponder-379.32.1-1-src.tar.bz2 195 '
'aff488008bee3486e25b539fe6ccd1397bd3c5c0ba2ee2cf34af279554baa195af7493ee51d6f8510735c9a2ea54436d776a71e768165716762aec286abbbf83\n'
- 'message: mDNSResponder "The Cygwin mDNSResponder package contains only clients.\n'
- "If you do not already have the 'Bonjour Service' installed (it comes with\n"
- 'a number of popular Windows programs), then you can download it at\n'
- 'http://support.apple.com/kb/DL999"\n'
'\n'
'@ openssh\n'
'sdesc: "The OpenSSH server and client programs"\n'
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-06-05 14:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-05 14:32 [calm - Cygwin server-side packaging maintenance script] branch master, updated. 20160705-85-g77639e2 jturney
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).