summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas K. Hüttel <dilfridge@gentoo.org>2016-12-15 22:06:45 +0100
committerAndreas K. Hüttel <dilfridge@gentoo.org>2016-12-15 22:07:13 +0100
commit81f411cef66df2515dec124ac85da34f7e41d4ba (patch)
tree6721d01c5f0c4ed4f4a105c36f4fb51ee8f3a418 /www-misc/zoneminder
parentdev-python/pymongo: version bump to 3.4.0 (diff)
downloadgentoo-81f411cef66df2515dec124ac85da34f7e41d4ba.tar.gz
gentoo-81f411cef66df2515dec124ac85da34f7e41d4ba.tar.bz2
gentoo-81f411cef66df2515dec124ac85da34f7e41d4ba.zip
www-misc/zoneminder: Properly use REPLACING_VERSIONS
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'www-misc/zoneminder')
-rw-r--r--www-misc/zoneminder/zoneminder-1.30.0.ebuild10
1 files changed, 7 insertions, 3 deletions
diff --git a/www-misc/zoneminder/zoneminder-1.30.0.ebuild b/www-misc/zoneminder/zoneminder-1.30.0.ebuild
index 60f391573c1c..d041e19e156a 100644
--- a/www-misc/zoneminder/zoneminder-1.30.0.ebuild
+++ b/www-misc/zoneminder/zoneminder-1.30.0.ebuild
@@ -14,7 +14,7 @@
EAPI=6
-inherit perl-functions readme.gentoo-r1 cmake-utils depend.apache flag-o-matic systemd
+inherit versionator perl-functions readme.gentoo-r1 cmake-utils depend.apache flag-o-matic systemd
MY_PN="ZoneMinder"
@@ -168,6 +168,10 @@ src_install() {
pkg_postinst() {
readme.gentoo_print_elog
- local myold=${REPLACING_VERSIONS}
- [ "${myold}" = ${PV} ] || elog "You have upgraded zoneminder and may have to upgrade your database now using the 'zmupdate.pl' script."
+ local v
+ for v in ${REPLACING_VERSIONS}; do
+ if ! version_is_at_least ${PV} ${v}; then
+ elog "You have upgraded zoneminder and may have to upgrade your database now using the 'zmupdate.pl' script."
+ fi
+ done
}