perl-module.eclass: Fix bash array handling of DIST_EXAMPLES
authorAndreas K. Hüttel <dilfridge@gentoo.org>
Mon, 18 Apr 2016 21:05:55 +0000 (23:05 +0200)
committerAndreas K. Hüttel <dilfridge@gentoo.org>
Mon, 18 Apr 2016 21:05:55 +0000 (23:05 +0200)
eclass/perl-module.eclass

index c22b685829909f0e9f901d3bab5a19b2e8bd715d..0e90e24408661ef0a0922c7e2b5153f7c285da71 100644 (file)
@@ -431,7 +431,7 @@ perl-module_src_install() {
 
        if [[ ${EAPI:-0} != 5 ]] ; then
                if in_iuse examples && use examples ; then
-                        [[ -z "${DIST_EXAMPLES}" ]] || perl_doexamples ${DIST_EXAMPLES}
+                        [[ ${#DIST_EXAMPLES[@]} -eq 0 ]] || perl_doexamples "${DIST_EXAMPLES[@]}"
                fi
        fi