1 |
commit: 0387240fea13ec8b8e2fa4d5e0480986a8b32a3c |
2 |
Author: Torsten Veller <tove <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jun 5 18:18:23 2012 +0000 |
4 |
Commit: Torsten Veller <tove <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jun 5 18:18:23 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/perl-overlay.git;a=commit;h=0387240f |
7 |
|
8 |
[fix] no version warnings if gentoo-perlmod-version.pl can't run |
9 |
|
10 |
--- |
11 |
eclass/perl-module.eclass | 2 +- |
12 |
1 files changed, 1 insertions(+), 1 deletions(-) |
13 |
|
14 |
diff --git a/eclass/perl-module.eclass b/eclass/perl-module.eclass |
15 |
index a4d0191..76ba26c 100644 |
16 |
--- a/eclass/perl-module.eclass |
17 |
+++ b/eclass/perl-module.eclass |
18 |
@@ -290,7 +290,7 @@ perl_check_module_version() { |
19 |
local gpmv="$(type -p gentoo-perlmod-version.pl)" |
20 |
[[ -n ${MODULE_VERSION} && -n ${gpmv} && -x ${gpmv} ]] || return |
21 |
REAL_PV=$( ${gpmv} --oneshot "${MODULE_VERSION}" ) |
22 |
- if [[ ${REAL_PV} != ${PV} ]] ; then |
23 |
+ if [[ -n ${REAL_PV} && ${REAL_PV} != ${PV} ]] ; then |
24 |
eqawarn "QA Notice: Based on MODULE_VERSION=${MODULE_VERSION} the ebuild version ${PV} is wrong!" |
25 |
eqawarn " The ebuild version should be ${REAL_PV}" |
26 |
fi |