Skip to content
This repository has been archived by the owner on Nov 10, 2022. It is now read-only.

Commit

Permalink
Show package license
Browse files Browse the repository at this point in the history
  • Loading branch information
fingolfin authored and alex-konovalov committed Jun 21, 2019
1 parent 046cdad commit 6fc6eb5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions DistributionUpdate/PackageUpdate/PackageInfoTools.g
Original file line number Diff line number Diff line change
Expand Up @@ -1591,6 +1591,15 @@ AddHTMLPackageInfo := function(arg)
# SuggestUpgrades entry
info.SuggestUpgradesEntry := Concatenation("[ \"", info.PackageName,
"\", \"", info.Version, "\" ], ");

# license ...
if IsBound(info.License) then
Append(res, Concatenation("<h4>License</h4>\n<p>",
"<p><a href='https://spdx.org/licenses/",
info.License,".html'>", info.License,
"</a></p>\n"));
fi;

# status
Append(res, Concatenation("<h4>Status</h4>\n<p>",
info.Status, "\n"));
Expand Down

0 comments on commit 6fc6eb5

Please sign in to comment.