Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 118282 Details for
Bug 177197
sys-apps/baselayout-2.0.0_alpha[1,2] init.sh bash syntax error
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Work with funky kernel versions
kv.patch (text/plain), 559 bytes, created by
Roy Marples (RETIRED)
on 2007-05-05 19:27:16 UTC
(
hide
)
Description:
Work with funky kernel versions
Filename:
MIME Type:
Creator:
Roy Marples (RETIRED)
Created:
2007-05-05 19:27:16 UTC
Size:
559 bytes
patch
obsolete
>Index: sh/functions.sh >=================================================================== >--- sh/functions.sh (revision 2684) >+++ sh/functions.sh (working copy) >@@ -104,11 +104,12 @@ > KV_to_int() { > [ -z $1 ] && return 1 > >- local KV_MAJOR=${1%%.*} >- local x=${1#*.} >+ local x=${1%%-*} >+ local KV_MAJOR=${x%%.*} >+ x=${x#*.} > local KV_MINOR=${x%%.*} > x=${1#*.*.} >- local KV_MICRO=${x%%-*} >+ local KV_MICRO=${x%%.*} > local KV_int=$((${KV_MAJOR} * 65536 + ${KV_MINOR} * 256 + ${KV_MICRO} )) > > # We make version 2.2.0 the minimum version we will handle as
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 177197
: 118282