Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 43754 Details for
Bug 70906
ExtractKernelVersion does not take into account LOCALVERSION
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to support CONFIG_LOCALVERSION in KV
portage.py-kv_localversion.patch (text/plain), 913 bytes, created by
Owen Gunden
on 2004-11-11 17:40:28 UTC
(
hide
)
Description:
patch to support CONFIG_LOCALVERSION in KV
Filename:
MIME Type:
Creator:
Owen Gunden
Created:
2004-11-11 17:40:28 UTC
Size:
913 bytes
patch
obsolete
>--- portage.py.orig 2004-11-11 20:25:22.302739990 -0500 >+++ portage.py 2004-11-11 20:26:38.028430608 -0500 >@@ -797,6 +797,30 @@ > items[-1] != items[0]: > version += items[1] > >+ # now look in .config for a local version >+ config_pathname = os.path.join(base_dir, '.config') >+ try: >+ f = open(config_pathname, 'r') >+ except OSError, details: >+ return (None, str(details)) >+ except IOError, details: >+ return (None, str(details)) >+ # dunno how much of a performance hit this is.. >+ # it basically does a grep through the whole .config >+ try: >+ data = f.read() >+ except OSError, details: >+ return (None, str(details)) >+ except IOError, details: >+ return (None, str(details)) >+ data = data.split('\n') >+ pattern = re.compile('CONFIG_LOCALVERSION="(.*)"') >+ for line in data: >+ match = pattern.search(line) >+ if (match): >+ version += match.group(1) >+ f.close() >+ > return (version,None) > > aumtime=0
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 70906
: 43754