* [gentoo-science] [PATCH 04/10] alternatives-2.eclass: Remove commented-out code
@ 2014-01-20 17:53 99% ` Reinis Danne
0 siblings, 0 replies; 1+ results
From: Reinis Danne @ 2014-01-20 17:53 UTC (permalink / raw
To: gentoo-science
---
eclass/alternatives-2.eclass | 5 -----
1 file changed, 5 deletions(-)
diff --git a/eclass/alternatives-2.eclass b/eclass/alternatives-2.eclass
index a431d26..98317dd 100644
--- a/eclass/alternatives-2.eclass
+++ b/eclass/alternatives-2.eclass
@@ -22,7 +22,6 @@ EXPORT_FUNCTIONS pkg_postinst pkg_prerm
# alternatives_for alternative provider importance source target [ source target [...]]
alternatives_for() {
- #echo alternatives_for "${@}"
(( $# >= 5 )) && (( ($#-3)%2 == 0)) || die "${FUNCNAME} requires exactly 3+N*2 arguments where N>=1"
local alternative=${1} provider=${2} importance=${3} index src target ret=0
@@ -115,7 +114,6 @@ alternatives-2_pkg_postinst() {
if [[ ! -f "${EROOT%/}/usr/share/eselect/modules/auto/${alt}.eselect" \
|| "$(source "${EROOT%/}/usr/share/eselect/modules/auto/${alt}.eselect" &>/dev/null; echo "${VERSION}")" \
-ne "${module_version}" ]]; then
- #einfo "Creating alternatives module for ${alt}"
if [[ ! -d ${EROOT%/}/usr/share/eselect/modules/auto ]]; then
install -d "${EROOT%/}"/usr/share/eselect/modules/auto || eerror "Could not create eselect modules dir"
fi
@@ -132,7 +130,6 @@ alternatives-2_pkg_postinst() {
EOF
fi
- #echo eselect "${alt}" update "${provider}"
einfo "Creating ${provider} alternative module for ${alt}"
eselect "${alt}" update "${provider}"
@@ -146,8 +143,6 @@ alternatives-2_pkg_prerm() {
for a in "${ALTERNATIVES_PROVIDED[@]}"; do
alt="${a%:*}"
provider="${a#*:}"
- #echo "Making sure ${alt} has a valid provider"
- #echo eselect "${alt}" update${ignore} "${provider}"
eselect "${alt}" update${ignore} "${provider}" && continue
einfo "Removed ${provider} alternative module for ${alt}, current is $(eselect ${alt} show)"
if [[ $? -eq 2 ]]; then
--
1.8.5.3
^ permalink raw reply related [relevance 99%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2014-01-20 17:53 [gentoo-science] [PATCH 00/10] alternatives-2.eclass updates Reinis Danne
2014-01-20 17:53 99% ` [gentoo-science] [PATCH 04/10] alternatives-2.eclass: Remove commented-out code Reinis Danne
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox