summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-07-07 18:54:05 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-07-07 18:54:05 +0000
commit2c754c9bbdb62a4cc7bf3b9446c00c899ff8dc68 (patch)
tree22fc54668c300eb9fd0463fb1c0e31ee1073e8fd /eclass/vim-spell.eclass
parentMarked ~hppa (bug #266035). (diff)
downloadgentoo-2-2c754c9bbdb62a4cc7bf3b9446c00c899ff8dc68.tar.gz
gentoo-2-2c754c9bbdb62a4cc7bf3b9446c00c899ff8dc68.tar.bz2
gentoo-2-2c754c9bbdb62a4cc7bf3b9446c00c899ff8dc68.zip
Call doins only for existing files (bug #250853).
Diffstat (limited to 'eclass/vim-spell.eclass')
-rw-r--r--eclass/vim-spell.eclass16
1 files changed, 12 insertions, 4 deletions
diff --git a/eclass/vim-spell.eclass b/eclass/vim-spell.eclass
index 0b4d1724e3b1..b6b6a8b66f0d 100644
--- a/eclass/vim-spell.eclass
+++ b/eclass/vim-spell.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/vim-spell.eclass,v 1.6 2007/03/21 03:40:22 pioto Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/vim-spell.eclass,v 1.7 2009/07/07 18:54:05 arfrever Exp $
#
# Original Author: Ciaran McCreesh <ciaranm@gentoo.org>
@@ -84,9 +84,17 @@ vim-spell_src_install() {
insinto "${target}"
had_spell_file=
- for f in *.spl *.sug ; do
- doins "${f}"
- had_spell_file="yes"
+ for f in *.spl ; do
+ if [[ -f "${f}" ]]; then
+ doins "${f}"
+ had_spell_file="yes"
+ fi
+ done
+
+ for f in *.sug ; do
+ if [[ -f "${f}" ]]; then
+ doins "${f}"
+ fi
done
for f in README* ; do