]> thyrsus.com Git - freecode-submit.git/commitdiff
Do ${version} substitution.
authorEric S. Raymond <esr@thyrsus.com>
Thu, 14 Oct 2010 21:21:13 +0000 (17:21 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Thu, 14 Oct 2010 21:21:13 +0000 (17:21 -0400)
freshmeat-submit
freshmeat-submit.xml

index a8024634f422c7775c718bc67bd597c308267705..b77b8f71824d647a39db3c99556be3502551f995 100755 (executable)
@@ -152,11 +152,13 @@ class FreshmeatMetadataFactory:
         for file in args:
             if file.endswith(".rpm"):
                 crack_rpm(file, data, urls)
-        # Second. stuff from stdin if present
+        # Second, stuff from stdin if present
         if options.read:
             message = self.message_parser.parse(stream)
             for (key, value) in message.items():
                 if key.endswith("-URL"):
+                    for (k, v) in data.items():
+                        value = value.replace('${' + k + '}', v)
                     urls.update({key[:-4] : value})
                 else:
                     data.update({self.header_to_field(key) : value})
index 5cb341cb18c99b82488efa62ad2cd2135fd2ffdf..34d28836e14262d5698ffe577bf8a1646bd6bf78 100644 (file)
@@ -63,9 +63,7 @@ standard input.</para>
 <varlistentry>
 <term>-N</term>
 <listitem>
-<para>Display the merged record from binary package arguments,
-standard input and command-line options to standard output.  Don't
-ship it.</para>
+<para>Dump the generated JSON, but don't ship it. to Freshmeat.</para>
 </listitem>
 </varlistentry>
 <varlistentry>
@@ -91,7 +89,9 @@ is mined out of the RPM and merged into the release information.</para>
 <para>An RFC-2822-format message, strongly resembling an ordinary
 email message, on standard input.  The message header fields each
 specify a particular item of release information; the body (if
-present) becomes the change announcement text.</para>
+present) becomes the change announcement text. Within URL fields, the
+string ${version} will be replaced with the contends of the Version
+field.</para>
 </listitem>
 
 <listitem>
@@ -226,7 +226,7 @@ Version: 1.1
 Release-Focus: Major feature enhancements
 Hide: N
 Website-URL: http://www.catb.org/~esr/doclifter/
-Tar/GZ-URL: http://www.catb.org/~esr/doclifter/doclifter-1.1.tar.gz
+Tar/GZ-URL: http://www.catb.org/~esr/doclifter/doclifter-${version}.tar.gz
 
 Fixed a bug in conditional evaluation that twadmin(8) tickled.  Better
 detection of pure inclusions. Better blank-section elimination.