1 |
commit: 2a009a791366ef003d07eaebfccf7bf95df9b0dc |
2 |
Author: Mike Pagano <mpagano <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri May 13 13:37:34 2022 +0000 |
4 |
Commit: Mike Pagano <mpagano <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri May 13 13:41:17 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2a009a79 |
7 |
|
8 |
inux-info.eclass: Remove local function.Calling code removed on Aug 3,2010 |
9 |
|
10 |
This function was only called locally and the last use was |
11 |
almost 12 years ago |
12 |
|
13 |
See: https://gitlab.com/rindeal/gentoo-cvs-history-archive/-/commit/1715ad |
14 |
cd9e404075340e5a5ed82f88928feeffd9 |
15 |
|
16 |
Signed-off-by: Mike Pagano <mpagano <AT> gentoo.org> |
17 |
|
18 |
eclass/linux-info.eclass | 20 -------------------- |
19 |
1 file changed, 20 deletions(-) |
20 |
|
21 |
diff --git a/eclass/linux-info.eclass b/eclass/linux-info.eclass |
22 |
index 8c502812f8f0..d2003874da09 100644 |
23 |
--- a/eclass/linux-info.eclass |
24 |
+++ b/eclass/linux-info.eclass |
25 |
@@ -438,26 +438,6 @@ kernel_is() { |
26 |
"${1:-${KV_MAJOR:-0}}.${2:-${KV_MINOR:-0}}.${3:-${KV_PATCH:-0}}" |
27 |
} |
28 |
|
29 |
-get_localversion() { |
30 |
- local lv_list i x |
31 |
- |
32 |
- local shopt_save=$(shopt -p nullglob) |
33 |
- shopt -s nullglob |
34 |
- local files=( ${1}/localversion* ) |
35 |
- ${shopt_save} |
36 |
- |
37 |
- # ignore files with ~ in it. |
38 |
- for i in "${files[@]}"; do |
39 |
- [[ -n ${i//*~*} ]] && lv_list="${lv_list} ${i}" |
40 |
- done |
41 |
- |
42 |
- for i in ${lv_list}; do |
43 |
- x="${x}$(<${i})" |
44 |
- done |
45 |
- x=${x/ /} |
46 |
- echo ${x} |
47 |
-} |
48 |
- |
49 |
# Check if the Makefile is valid for direct parsing. |
50 |
# Check status results: |
51 |
# - PASS, use 'getfilevar' to extract values |