aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReinis Danne <rei4dan@gmail.com>2014-01-20 22:18:28 +0200
committerReinis Danne <rei4dan@gmail.com>2014-01-21 21:59:19 +0200
commit1685ac726eee2306c6cb928f731a68d4112ef15a (patch)
tree4cb7720c5c6c97d0e9e3c6257ddaded6858a2128 /eclass/alternatives-2.eclass
parentalternatives-2.eclass: Use consistent quoting (diff)
downloadsci-1685ac726eee2306c6cb928f731a68d4112ef15a.tar.gz
sci-1685ac726eee2306c6cb928f731a68d4112ef15a.tar.bz2
sci-1685ac726eee2306c6cb928f731a68d4112ef15a.zip
alternatives-2.eclass: Fix einfo message in pkg_postinst
Diffstat (limited to 'eclass/alternatives-2.eclass')
-rw-r--r--eclass/alternatives-2.eclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/eclass/alternatives-2.eclass b/eclass/alternatives-2.eclass
index 4bf696e91..a6c2ef69b 100644
--- a/eclass/alternatives-2.eclass
+++ b/eclass/alternatives-2.eclass
@@ -171,6 +171,7 @@ alternatives-2_pkg_postinst() {
if [[ ! -d ${EAUTO} ]]; then
install -d "${EAUTO}" || eerror "Could not create eselect modules dir"
fi
+ einfo "Creating alternatives eselect module for ${alt}"
cat > "${EAUTO}/${alt}.eselect" <<-EOF
# This module was automatically generated by alternatives-2.eclass
DESCRIPTION="Alternatives for ${alt}"
@@ -184,7 +185,7 @@ alternatives-2_pkg_postinst() {
EOF
fi
- einfo "Creating ${provider} alternative module for ${alt}"
+ # Set alternative provider if there is no valid provider selected
eselect "${alt}" update "${provider}"
cleanup_old_alternatives_module ${alt}