* Store meta.maintainers.
This commit is contained in:
parent
5bdd5e7152
commit
24a3b39463
|
@ -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. */
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue