# Note: Release Focus is no longer a real Freshmeat field; we'll remap it later.
freshmeat_field_map = (
("Project", "P", "name"), # Project
+ ("Summary", "S", "oneliner"), # Project
("Description", "D", "description"), # Project
("License-List", "L", "license_list"), # Project
+ ("Project-Tag-List", "T", "project_tag_list"), # Project
("Version", "v", "version"), # Release
("Changes", "c", "changelog"), # Release
("Hide", "x", "hidden_from_frontpage"), # Release
("Release-Focus", "r", "release_focus"), # Release
- ("Tag-List", "t", "tag_list"), # Release
+ ("Release-Tag-List", "t", "tag_list"), # Release
)
# Which attributes have project scope, all others have release scupe
-freshmeat_projectwide = ('name', 'description', 'license_list')
+freshmeat_projectwide = ('name',
+ 'description',
+ 'oneliner',
+ 'license_list',
+ 'project_tag_list')
def get_rpm_field(fld, rpm):
cmd = "rpm --queryformat='%%{%s}' -qp %s" % (fld, rpm)
update.urldict = urllist
for (k, v) in data.items():
if k in freshmeat_projectwide:
+ # Hack to get around a namespace collision
+ if k == "project_release_tag":
+ k = "release_tag"
update.per_project[k] = v
else:
update.per_release[k] = v
<entry>Project:</entry> <entry>Project</entry> <entry>NAME</entry>
<entry>-p</entry><entry>--project</entry>
<entry>
-<para>Name of the project (freshmeat shortname) to operate on.</para>
+<para>Name of the project (freshmeat shortname) to operate on. You cannot
+change the project-name attribute with this program; to do that, you
+need to use the Freshmeat web interface.</para>
+</entry>
+</row>
+
+<row>
+<entry>Summary:</entry> <entry>Project</entry> <entry>-</entry>
+<entry>-S</entry><entry>--summary</entry>
+<entry>
+<para>One-line summary of the project.</para>
</entry>
</row>
<entry>Description:</entry> <entry>Project</entry> <entry>DESCRIPTION</entry>
<entry>-D</entry><entry>--description</entry>
<entry>
-<para>Description of the project.</para>
+<para>Multiline description of the project.</para>
</entry>
</row>
</entry>
</row>
+<row>
+<entry>Project-Tag-List:</entry><entry>Release</entry> <entry>-</entry>
+<entry>-T</entry><entry>--project-tag-list</entry>
+<entry>
+<para>Tags to attach to this project. May be a comma-separated list.</para>
+</entry>
+</row>
+
<row>
<entry>Version:</entry> <entry>Release</entry> <entry>VERSION</entry>
<entry>-v</entry><entry>--version</entry>
</row>
<row>
-<entry>Tag-List:</entry> <entry>Release</entry> <entry>-</entry>
+<entry>Release-Tag-List:</entry> <entry>Release</entry> <entry>-</entry>
<entry>-t</entry><entry>--tag-list</entry>
<entry>
<para>Tags to attach to this release. May be a comma-separated list.</para>