aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-03-26 18:43:39 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-03-26 18:43:39 +0000
commit5bfb8244277aa909a26141ddae05888d013191be (patch)
tree1827f12c5dc2546e7207b022ab6707b15b014901
parent1e8b4c2ab2cdb6e38376fd9d8a69f9cb1ba110b2 (diff)
downloadpaludis-5bfb8244277aa909a26141ddae05888d013191be.tar.gz
paludis-5bfb8244277aa909a26141ddae05888d013191be.tar.xz
Fix eselect news when LANG is set
-rw-r--r--eselect/news.eselect8
1 files changed, 4 insertions, 4 deletions
diff --git a/eselect/news.eselect b/eselect/news.eselect
index 9b6c416..edf17bd 100644
--- a/eselect/news.eselect
+++ b/eselect/news.eselect
@@ -92,15 +92,15 @@ get_lang() {
get_headers() {
local dir=${1}
- dir=${dir}/$(basename ${1%/} ).$(get_lang).txt
- [[ -f ${dir} ]] || dir=${dir}/$(basename ${1%/} ).en.txt
+ dir=${1}/$(basename ${1%/} ).$(get_lang).txt
+ [[ -f ${dir} ]] || dir=${1}/$(basename ${1%/} ).en.txt
sed -e '/^$/,$d' < ${dir}
}
get_body() {
local dir=${1}
- dir=${dir}/$(basename ${1%/} ).$(get_lang).txt
- [[ -f ${dir} ]] || dir=${dir}/$(basename ${1%/} ).en.txt
+ dir=${1}/$(basename ${1%/} ).$(get_lang).txt
+ [[ -f ${dir} ]] || dir=${1}/$(basename ${1%/} ).en.txt
sed -e '1,/^$/d' < ${dir}
}