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