1 |
commit: f81cca8a201167e53b218617b479986d7e96cfa8 |
2 |
Author: Justin Lecher <jlec <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 22 12:22:32 2016 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 22 12:22:32 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=f81cca8a |
7 |
|
8 |
intel-sdp-r1.eclass: Handle shorter versioning |
9 |
|
10 |
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org> |
11 |
|
12 |
eclass/intel-sdp-r1.eclass | 9 ++++++++- |
13 |
1 file changed, 8 insertions(+), 1 deletion(-) |
14 |
|
15 |
diff --git a/eclass/intel-sdp-r1.eclass b/eclass/intel-sdp-r1.eclass |
16 |
index 2f06ed3..e1ad96d 100644 |
17 |
--- a/eclass/intel-sdp-r1.eclass |
18 |
+++ b/eclass/intel-sdp-r1.eclass |
19 |
@@ -143,7 +143,14 @@ esac |
20 |
# Gets the full internal Intel version specifier. |
21 |
_isdp_get-sdp-full-pv() { |
22 |
local _intel_pv=($(get_version_components)) |
23 |
- local _intel_pv_full="${_intel_pv[3]}-${_intel_pv[0]}.${_intel_pv[1]}.${_intel_pv[2]}-${_intel_pv[3]}" |
24 |
+ case ${#_intel_pv[@]} in |
25 |
+ 3) |
26 |
+ local _intel_pv_full="${_intel_pv[0]}.${_intel_pv[1]}-${_intel_pv[2]}" |
27 |
+ ;; |
28 |
+ 4) |
29 |
+ local _intel_pv_full="${_intel_pv[3]}-${_intel_pv[0]}.${_intel_pv[1]}.${_intel_pv[2]}-${_intel_pv[3]}" |
30 |
+ ;; |
31 |
+ esac |
32 |
echo "${_intel_pv_full}" |
33 |
} |