Package: php7.0-common
Version: 7.0.3-12
Severity: important
Tags: patch
Dear Maintainer,
Please check befor rmdir, otherwise the installation might end like this:
Preparing to unpack .../php7.0-curl_7.0.3-12_amd64.deb ...
rmdir: failed to remove '/etc/php/mods-available': No such file or directory
dpkg: error processing archive
/var/cache/apt/archives/php7.0-curl_7.0.3-12_amd64.deb (--unpack):
subprocess new pre-installation script returned error exit status 1
Preparing to unpack .../php7.0-readline_7.0.3-12_amd64.deb ...
rmdir: failed to remove '/etc/php/mods-available': No such file or directory
dpkg: error processing archive
/var/cache/apt/archives/php7.0-readline_7.0.3-12_amd64.deb (--unpack):
subprocess new pre-installation script returned error exit status 1
Greetz Alf
-- System Information:
Debian Release: stretch/sid
APT prefers buildd-unstable
APT policy: (990, 'buildd-unstable'), (500, 'unstable'), (500, 'testing'),
(400, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 4.4.3-towo.1-siduction-amd64 (SMP w/8 CPU cores; PREEMPT)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages php7.0 depends on:
ii libapache2-mod-php7.0 7.0.3-12
ii php7.0-cgi 7.0.3-12
ii php7.0-common 7.0.3-12
ii php7.0-fpm 7.0.3-12
php7.0 recommends no packages.
php7.0 suggests no packages.
Versions of packages php7.0-common depends on:
ii libc6 2.21-9
ii libssl1.0.2 1.0.2f-2
ii php-common 1:33
ii ucf 3.0035
ii zlib1g 1:1.2.8.dfsg-2+b1
-- no debconf information
diff --git a/debian/php-module.preinst.in b/debian/php-module.preinst.in
index 5de674a..0d57e36 100644
--- a/debian/php-module.preinst.in
+++ b/debian/php-module.preinst.in
@@ -36,9 +36,8 @@ if [ "$1" = "upgrade" ]; then
rm -f "${symlink}"
fi
done
-
done
- rmdir --ignore-fail-on-non-empty "$inidir"
+ [ -d "$inidir" ] && rmdir --ignore-fail-on-non-empty "$inidir"
fi
#DEBHELPER#