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. 20160705-85-g77639e2
Date: Mon, 05 Jun 2017 14:32:00 -0000	[thread overview]
Message-ID: <20170605143229.10171.qmail@sourceware.org> (raw)




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'


                 reply	other threads:[~2017-06-05 14:32 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=20170605143229.10171.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).