* Store meta.maintainers.

This commit is contained in:
Eelco Dolstra 2009-07-07 14:33:51 +00:00
parent 5bdd5e7152
commit 24a3b39463
3 changed files with 17 additions and 0 deletions

View file

@ -135,6 +135,18 @@ static void findJobsWrapped(EvalState & state, XMLWriter & doc,
int prio = queryMetaFieldInt(meta, "schedulingPriority", 100);
xmlAttrs["schedulingPriority"] = int2String(prio);
string maintainers;
MetaValue value = meta["maintainers"];
if (value.type == MetaValue::tpString)
maintainers = value.stringValue;
else if (value.type == MetaValue::tpStrings) {
foreach (Strings::const_iterator, i, value.stringValues) {
if (maintainers.size() != 0) maintainers += ", ";
maintainers += *i;
}
}
xmlAttrs["maintainers"] = maintainers;
/* Register the derivation as a GC root. !!! This
registers roots for jobs that we may have already
done. */

View file

@ -113,6 +113,10 @@
<th>Homepage:</th>
<td>[% IF build.homepage %]<a [% HTML.attributes(href => build.homepage) %]>[% HTML.escape(build.homepage) %]</a>[% ELSE %]<em>(not given)</em>[% END %]</td>
</tr>
<tr>
<th>Maintainer(s):</th>
<td>[% IF build.maintainers %]<tt>[% HTML.escape(build.maintainers) %]</tt>[% ELSE %]<em>(not given)</em>[% END %]</td>
</tr>
<tr>
<th>System:</th>
<td><tt>[% build.system %]</tt></td>

View file

@ -289,6 +289,7 @@ sub checkJob {
, longdescription => $job->{longDescription}
, license => $job->{license}
, homepage => $job->{homepage}
, maintainers => $job->{maintainers}
, nixname => $job->{nixName}
, drvpath => $drvPath
, outpath => $outPath