[apache2] 02/03: fix postrm check for index.html
Stefan Fritsch
sf at moszumanska.debian.org
Sat May 28 14:21:54 UTC 2016
This is an automated email from the git hooks/post-receive script.
sf pushed a commit to branch master
in repository apache2.
commit a9a5fafd6b882cb7c3574f734b469a63dc5512d0
Author: Stefan Fritsch <sf at sfritsch.de>
Date: Sat May 28 16:13:27 2016 +0200
fix postrm check for index.html
And check the check during build.
---
debian/apache2.postrm | 2 +-
debian/rules | 5 +++++
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/debian/apache2.postrm b/debian/apache2.postrm
index 7023734..608336d 100644
--- a/debian/apache2.postrm
+++ b/debian/apache2.postrm
@@ -32,7 +32,7 @@ is_default_index_html () {
74cec59a19e5d16f7cc6a2445e35fa3b
776221a94e5a174dc2396c0f3f6b6a74
c481228d439cbb54bdcedbaec5bbb11a
- 675d549372241f55964b5f886921b06d
+ e2620d4a5a0f8d80dd4b16de59af981f
EOF
}
diff --git a/debian/rules b/debian/rules
index d08e825..4353501 100755
--- a/debian/rules
+++ b/debian/rules
@@ -39,6 +39,11 @@ prebuild-checks:
ls -1 $$ERRS ;\
false ;\
fi
+ MD5=$$(md5sum debian/index.html 2> /dev/null |cut -d' ' -f 1) ; \
+ if ! grep -q $$MD5 debian/apache2.postrm ; then \
+ echo "ERROR: index.html's md5 is missing in postrm!" ;\
+ false ; \
+ fi
clean-config-vars:
# Clean up config_vars.mk
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-apache/apache2.git
More information about the Pkg-apache-commits
mailing list