summarylogtreecommitdiffstats
path: root/pdepend.install
diff options
context:
space:
mode:
Diffstat (limited to 'pdepend.install')
-rw-r--r--pdepend.install6
1 files changed, 4 insertions, 2 deletions
diff --git a/pdepend.install b/pdepend.install
index 847b1d455113..0368bd25df68 100644
--- a/pdepend.install
+++ b/pdepend.install
@@ -1,6 +1,8 @@
post_install() {
- echo
- echo "Warning: phar.so and bz2.so must be enabled in your php.ini"
+ if php -i | grep 'bzip2 compression => disabled' >/dev/null 2>&1; then
+ echo -e "Warning: bz2.so must be loaded in your php.ini to use ${pkgname}"
+ echo -e "You may use \"sed -i 's/;extension=bz2.so/extension=bz2.so/g' /etc/php/php.ini\" to change your configuration"
+ fi
}
post_upgrade() {