[Pkg-openldap-devel] [openldap] 02/29: r1319 at pulsar: torsten | 2005-03-13 19:51:44 +0100 * debian/slapd.postinst: Add a testing interface to test the helper functions.

Timo Aaltonen tjaalton-guest at alioth.debian.org
Thu Oct 10 05:34:46 UTC 2013


This is an automated email from the git hooks/post-receive script.

tjaalton-guest pushed a commit to annotated tag 2.2.23-0.pre6
in repository openldap.

commit d41e59694de02e7972e9f4d14e818043416f867f
Author: Torsten Landschoff <torsten at debian.org>
Date:   Mon Mar 14 00:03:15 2005 +0000

     r1319 at pulsar:  torsten | 2005-03-13 19:51:44 +0100
      * debian/slapd.postinst: Add a testing interface to test the helper
        functions.
---
 debian/changelog      |    3 ++-
 debian/slapd.postinst |   17 +++++++++++++++++
 2 files changed, 19 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 32bf69f..49436c9 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
 openldap2.2 (2.2.23-0.pre6) experimental; urgency=low
 
-  * 
+  * debian/slapd.postinst: Add a testing interface to test the helper
+    functions.
 
  --
 
diff --git a/debian/slapd.postinst b/debian/slapd.postinst
index ec3d399..39fabc7 100644
--- a/debian/slapd.postinst
+++ b/debian/slapd.postinst
@@ -402,6 +402,23 @@ update_access_config_directives() {					# {{{
 
 } # }}}
 
+# Testing interface 							# {{{
+#-----------------------------------------------------------------------
+# To be able to test parts of the  maintainer scripts during development
+# without installing the whole package you can run the slapd.postinst script
+# with just
+#   sh debian/slapd.postinst dry "<cmd>"
+# which will evaluate "<cmd>" with the functions of the maintainer scripts
+# defined. 
+
+if [ "$1" = "dry" ]; then
+	. `dirname "$0"`/slapd.scripts-common
+	eval "$2"
+	exit
+fi
+
+# }}}
+
 . /usr/share/debconf/confmodule
 
 # Initial configuration							{{{

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-openldap/openldap.git



More information about the Pkg-openldap-devel mailing list