1 |
Author: idl0r |
2 |
Date: 2009-09-28 18:57:19 +0000 (Mon, 28 Sep 2009) |
3 |
New Revision: 687 |
4 |
|
5 |
Modified: |
6 |
trunk/gentoolkit-dev/ChangeLog |
7 |
trunk/gentoolkit-dev/src/eshowkw/eshowkw |
8 |
Log: |
9 |
Ignore comments when parsing arch.list, thanks to Fabian Groffen <grobian@g.o>. |
10 |
|
11 |
|
12 |
Modified: trunk/gentoolkit-dev/ChangeLog |
13 |
=================================================================== |
14 |
--- trunk/gentoolkit-dev/ChangeLog 2009-09-28 18:25:48 UTC (rev 686) |
15 |
+++ trunk/gentoolkit-dev/ChangeLog 2009-09-28 18:57:19 UTC (rev 687) |
16 |
@@ -1,6 +1,8 @@ |
17 |
2009-28-09: Christian Ruppert <idl0r@g.o> |
18 |
* src/eshowkw/eshowkw: Make eshowkw a bit more POSIX compliant when using |
19 |
/bin/sh, thanks to Daniel Pielmeier <billie@g.o>. |
20 |
+ Ignore comments when parsing arch.list, thanks to Fabian Groffen <grobian@g.o>. |
21 |
+ |
22 |
2009-12-09: Christian Ruppert <idl0r@g.o> |
23 |
* src/echangelog/echangelog: Fix bug 284657, thanks to Andrew Gaffney <agaffney@g.o>. |
24 |
Cleanup VCS detection. |
25 |
|
26 |
Modified: trunk/gentoolkit-dev/src/eshowkw/eshowkw |
27 |
=================================================================== |
28 |
--- trunk/gentoolkit-dev/src/eshowkw/eshowkw 2009-09-28 18:25:48 UTC (rev 686) |
29 |
+++ trunk/gentoolkit-dev/src/eshowkw/eshowkw 2009-09-28 18:57:19 UTC (rev 687) |
30 |
@@ -283,12 +283,17 @@ |
31 |
echo -e "\033[0;0m:" |
32 |
echo |
33 |
|
34 |
- local archs= arch_length=0 arch= |
35 |
- archs=( $(< $(get_portage_dir )/profiles/arch.list ) ) |
36 |
- for arch in "${archs[@]}" ; do |
37 |
+ local archs=() arch_length=0 arch= |
38 |
+ while read arch |
39 |
+ do |
40 |
+ [[ -z "${arch}" ]] && continue |
41 |
+ [[ "${arch:0:1}" == "#" ]] && continue |
42 |
[[ ${#arch} -gt ${arch_length} ]] && arch_length=${#arch} |
43 |
- done |
44 |
|
45 |
+ archs[${#archs[*]}]=$arch |
46 |
+ done < "$(get_portage_dir)/profiles/arch.list" |
47 |
+ |
48 |
+ |
49 |
local versions= pkgname= version_length=0 version= |
50 |
pkgname=$(basename $(readlink -f ./ ) ) |
51 |
versions=( $(for e in $(echo *.ebuild ) ; do \ |