1 |
Author: ulm |
2 |
Date: 2010-01-30 14:41:08 +0000 (Sat, 30 Jan 2010) |
3 |
New Revision: 757 |
4 |
|
5 |
Modified: |
6 |
trunk/modules/env.eselect |
7 |
Log: |
8 |
Fix env-update call. |
9 |
|
10 |
Modified: trunk/modules/env.eselect |
11 |
=================================================================== |
12 |
--- trunk/modules/env.eselect 2010-01-30 14:22:27 UTC (rev 756) |
13 |
+++ trunk/modules/env.eselect 2010-01-30 14:41:08 UTC (rev 757) |
14 |
@@ -251,7 +251,7 @@ |
15 |
} |
16 |
|
17 |
do_update() { |
18 |
- local ldconfig=1 status |
19 |
+ local ldconfig=1 |
20 |
|
21 |
while [[ $# -gt 0 ]]; do |
22 |
case ${1##--} in |
23 |
@@ -277,9 +277,8 @@ |
24 |
|
25 |
# Use the package manager's env-update command if available, |
26 |
# otherwise (if 127 was returned) fall back to shell implementation |
27 |
- env_update |
28 |
- status=$? |
29 |
- [[ ${status} -ne 127 ]] && return ${status} |
30 |
+ env_update ${ldconfig} && return |
31 |
+ [[ $? -eq 127 ]] || die -q "env-update failed" |
32 |
|
33 |
# Create configuration files |
34 |
create_profile_env |