diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2010-01-01 23:13:26 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2010-01-01 23:13:26 +0000 |
commit | f71a84c6486086dc1060136274735fe0e66ac3b5 (patch) | |
tree | 63bc66485b681b508cacb949635b18b21e49f019 /eclass | |
parent | Add CPAN-Mini to DEPEND again (diff) | |
download | historical-f71a84c6486086dc1060136274735fe0e66ac3b5.tar.gz historical-f71a84c6486086dc1060136274735fe0e66ac3b5.tar.bz2 historical-f71a84c6486086dc1060136274735fe0e66ac3b5.zip |
Don't error out if there is neither bin nor lib directories to install.
This is the case of the pg gem for instance.
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/ruby-fakegem.eclass | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/eclass/ruby-fakegem.eclass b/eclass/ruby-fakegem.eclass index dbea445ca160..c80617aad0cd 100644 --- a/eclass/ruby-fakegem.eclass +++ b/eclass/ruby-fakegem.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/ruby-fakegem.eclass,v 1.8 2009/12/26 17:06:02 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/ruby-fakegem.eclass,v 1.9 2010/01/01 23:13:26 flameeyes Exp $ # # @ECLASS: ruby-fakegem.eclass # @MAINTAINER: @@ -263,7 +263,8 @@ each_fakegem_install() { [[ -d ${directory} ]] && _gemlibdirs="${_gemlibdirs} ${directory}" done - ruby_fakegem_doins -r ${_gemlibdirs} + [[ -n ${_gemlibdirs} ]] && \ + ruby_fakegem_doins -r ${_gemlibdirs} } # @FUNCTION: each_ruby_install |