diff options
author | Renato Botelho <renato@netgate.com> | 2015-11-13 10:29:37 -0200 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2015-11-13 10:29:37 -0200 |
commit | b9e2048a44b898786f1fa61d23f6852df4e82c51 (patch) | |
tree | df714b01e1c32324c0f816527378be23431d9884 /src/etc | |
parent | 6759e0fcbb154503041c44c4a4b05f8b820ed0bd (diff) | |
download | pfsense-b9e2048a44b898786f1fa61d23f6852df4e82c51.zip pfsense-b9e2048a44b898786f1fa61d23f6852df4e82c51.tar.gz |
Add shortname and changeloglink to get_pkg_info()
Diffstat (limited to 'src/etc')
-rw-r--r-- | src/etc/inc/pkg-utils.inc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/etc/inc/pkg-utils.inc b/src/etc/inc/pkg-utils.inc index 4f82bf2..823a89f 100644 --- a/src/etc/inc/pkg-utils.inc +++ b/src/etc/inc/pkg-utils.inc @@ -427,6 +427,14 @@ function get_pkg_info($pkgs = 'all', $info = 'all') { continue; } + $pkg_info['shortname'] = $pkg_info['name']; + pkg_remove_prefix($pkg_info['shortname']); + + /* XXX: Add it to globals.inc? */ + $pkg_info['changeloglink'] = + "https://github.com/pfsense/FreeBSD-ports/commits/devel/" . + $pkg_info['categories'][0] . '/' . $pkg_info['name']; + if (is_pkg_installed($pkg_info['name'])) { $pkg_info['installed'] = true; |