Revision 416c47c1
Added by Scott Ullrich about 17 years ago
etc/inc/pkg-utils.inc | ||
---|---|---|
111 | 111 |
******/ |
112 | 112 |
function get_pkg_info($pkgs = 'all', $info = 'all') { |
113 | 113 |
global $g; |
114 |
$freebsd_version = str_replace("\n", "", `uname -r | cut -d'-' -f1`); |
|
114 |
$freebsd_version = str_replace("\n", "", `uname -r | cut -d'-' -f1 | cut -d'.' -f1`);
|
|
115 | 115 |
$params = array( |
116 | 116 |
"pkg" => $pkgs, |
117 | 117 |
"info" => $info, |
Also available in: Unified diff
Only push 1 char version, such as 7 instead of 7.0