diff options
author | Matthias Schwarzott <zzam@gentoo.org> | 2007-08-26 21:06:11 +0000 |
---|---|---|
committer | Matthias Schwarzott <zzam@gentoo.org> | 2007-08-26 21:06:11 +0000 |
commit | ee34e7a110d5f5a7abafd20474bfda7b1cbbe8b9 (patch) | |
tree | c7a2a81f7a8ec365e14eeda2ade624cecbd239a2 /sys-fs/udev | |
parent | initial import - thanks Adam Carheden - bug #121895 (diff) | |
download | gentoo-2-ee34e7a110d5f5a7abafd20474bfda7b1cbbe8b9.tar.gz gentoo-2-ee34e7a110d5f5a7abafd20474bfda7b1cbbe8b9.tar.bz2 gentoo-2-ee34e7a110d5f5a7abafd20474bfda7b1cbbe8b9.zip |
Change kernel-version parsing to be more robust, now using versionator.eclass, thanks to Polynomial-C <polynomial-C@gmx.de>, bug 190326.
(Portage version: 2.1.3.7)
Diffstat (limited to 'sys-fs/udev')
-rw-r--r-- | sys-fs/udev/ChangeLog | 7 | ||||
-rw-r--r-- | sys-fs/udev/udev-115.ebuild | 13 |
2 files changed, 12 insertions, 8 deletions
diff --git a/sys-fs/udev/ChangeLog b/sys-fs/udev/ChangeLog index 84cabb2fff64..8f336e3906cc 100644 --- a/sys-fs/udev/ChangeLog +++ b/sys-fs/udev/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sys-fs/udev # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/ChangeLog,v 1.338 2007/08/26 11:36:02 zzam Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/ChangeLog,v 1.339 2007/08/26 21:06:11 zzam Exp $ + + 26 Aug 2007; Matthias Schwarzott <zzam@gentoo.org> udev-115.ebuild: + Change kernel-version parsing to be more robust, now using + versionator.eclass, thanks to Polynomial-C <polynomial-C@gmx.de>, bug + 190326. *udev-115 (26 Aug 2007) diff --git a/sys-fs/udev/udev-115.ebuild b/sys-fs/udev/udev-115.ebuild index 2927601501ea..8945aae203b6 100644 --- a/sys-fs/udev/udev-115.ebuild +++ b/sys-fs/udev/udev-115.ebuild @@ -1,8 +1,8 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/udev-115.ebuild,v 1.2 2007/08/26 13:40:57 mr_bones_ Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/udev-115.ebuild,v 1.3 2007/08/26 21:06:11 zzam Exp $ -inherit eutils flag-o-matic multilib toolchain-funcs +inherit eutils flag-o-matic multilib toolchain-funcs versionator DESCRIPTION="Linux dynamic and persistent device naming support (aka userspace devfs)" HOMEPAGE="http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html" @@ -41,12 +41,11 @@ pkg_setup() { # comparing kernel version without linux-info.eclass to not pull # virtual/linux-sources + local KV=$(uname -r) - local KV_MAJOR=${KV%%.*} - local x=${KV#*.} - local KV_MINOR=${x%%.*} - x=${KV#*.*.} - local KV_MICRO=${x%%-*} + local KV_MAJOR=$(get_major_version ${KV}) + local KV_MINOR=$(get_version_component_range 2 ${KV}) + local KV_MICRO=$(get_version_component_range 3 ${KV}) local ok=0 if [[ "${KV_MAJOR}" == 2 ]] && [[ "${KV_MINOR}" == 6 ]] && [[ "${KV_MICRO}" -ge 15 ]]; then |