1 |
commit: 1685ac726eee2306c6cb928f731a68d4112ef15a |
2 |
Author: Reinis Danne <rei4dan <AT> gmail <DOT> com> |
3 |
AuthorDate: Mon Jan 20 20:18:28 2014 +0000 |
4 |
Commit: Reinis Danne <rei4dan <AT> gmail <DOT> com> |
5 |
CommitDate: Tue Jan 21 19:59:19 2014 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=1685ac72 |
7 |
|
8 |
alternatives-2.eclass: Fix einfo message in pkg_postinst |
9 |
|
10 |
--- |
11 |
eclass/alternatives-2.eclass | 3 ++- |
12 |
1 file changed, 2 insertions(+), 1 deletion(-) |
13 |
|
14 |
diff --git a/eclass/alternatives-2.eclass b/eclass/alternatives-2.eclass |
15 |
index 4bf696e..a6c2ef6 100644 |
16 |
--- a/eclass/alternatives-2.eclass |
17 |
+++ b/eclass/alternatives-2.eclass |
18 |
@@ -171,6 +171,7 @@ alternatives-2_pkg_postinst() { |
19 |
if [[ ! -d ${EAUTO} ]]; then |
20 |
install -d "${EAUTO}" || eerror "Could not create eselect modules dir" |
21 |
fi |
22 |
+ einfo "Creating alternatives eselect module for ${alt}" |
23 |
cat > "${EAUTO}/${alt}.eselect" <<-EOF |
24 |
# This module was automatically generated by alternatives-2.eclass |
25 |
DESCRIPTION="Alternatives for ${alt}" |
26 |
@@ -184,7 +185,7 @@ alternatives-2_pkg_postinst() { |
27 |
EOF |
28 |
fi |
29 |
|
30 |
- einfo "Creating ${provider} alternative module for ${alt}" |
31 |
+ # Set alternative provider if there is no valid provider selected |
32 |
eselect "${alt}" update "${provider}" |
33 |
|
34 |
cleanup_old_alternatives_module ${alt} |