aboutsummaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2016-02-22 13:22:32 +0100
committerJustin Lecher <jlec@gentoo.org>2016-02-22 13:22:32 +0100
commitf81cca8a201167e53b218617b479986d7e96cfa8 (patch)
treea6f65edfc5222fc682cb8cb6a3a330a68b3442c5 /eclass
parentdev-lang/vtune: Drop old (diff)
downloadsci-f81cca8a201167e53b218617b479986d7e96cfa8.tar.gz
sci-f81cca8a201167e53b218617b479986d7e96cfa8.tar.bz2
sci-f81cca8a201167e53b218617b479986d7e96cfa8.zip
intel-sdp-r1.eclass: Handle shorter versioning
Signed-off-by: Justin Lecher <jlec@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/intel-sdp-r1.eclass9
1 files changed, 8 insertions, 1 deletions
diff --git a/eclass/intel-sdp-r1.eclass b/eclass/intel-sdp-r1.eclass
index 2f06ed3d5..e1ad96d19 100644
--- a/eclass/intel-sdp-r1.eclass
+++ b/eclass/intel-sdp-r1.eclass
@@ -143,7 +143,14 @@ esac
# Gets the full internal Intel version specifier.
_isdp_get-sdp-full-pv() {
local _intel_pv=($(get_version_components))
- local _intel_pv_full="${_intel_pv[3]}-${_intel_pv[0]}.${_intel_pv[1]}.${_intel_pv[2]}-${_intel_pv[3]}"
+ case ${#_intel_pv[@]} in
+ 3)
+ local _intel_pv_full="${_intel_pv[0]}.${_intel_pv[1]}-${_intel_pv[2]}"
+ ;;
+ 4)
+ local _intel_pv_full="${_intel_pv[3]}-${_intel_pv[0]}.${_intel_pv[1]}.${_intel_pv[2]}-${_intel_pv[3]}"
+ ;;
+ esac
echo "${_intel_pv_full}"
}