Package: yate
Version: 4.1.0-1~dfsg-2
Severity: normal
Tags: patch

Dh_installinit is called twice, once by "dh install" and once manually
in the rules file, resulting in duplicate update-rc.d calls in
postinst/postrm. This patch fixes that, although the rules file
probably needs a big cleanup because currently it's a mix of dh(1) and
standard debhelper.

-- System Information:
Debian Release: wheezy/sid
  APT prefers precise-updates
  APT policy: (500, 'precise-updates'), (500, 'precise-security'), (500, 
'precise'), (100, 'precise-backports')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-26-generic (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages yate depends on:
pn  adduser       3.113ubuntu2
pn  libc6         2.15-0ubuntu10
pn  libyate4.0.0  <none>
pn  yate-core     <none>

yate recommends no packages.

yate suggests no packages.
commit 167503cfefcb2cab905c53f85a0d7b08b2e2e6c0
Author: Jeroen Dekkers <jer...@dekkers.ch>
Date:   Wed Jul 4 02:07:40 2012 +0200

    Do not call dh_installinit twice

diff --git a/debian/rules b/debian/rules
index 025de7c..7f27cfd 100755
--- a/debian/rules
+++ b/debian/rules
@@ -50,7 +50,6 @@ binary-indep: install
 	dh_testroot -i
 	dh_auto_install
 	dh_installlogrotate -i
-	dh_installinit -i -- defaults 21
 	dh_installdocs -i 
 	dh_installexamples -i -XCVS
 	dh_installcron -i
@@ -84,7 +83,6 @@ binary-arch: install
 	find $(subpacks) -name '*.conf' -type f  -printf '-name %f -o\n' \
 	  | xargs | sed -e 's/ -o$$//' | xargs find $(CURDIR)/debian/yate-core \
 	  | xargs $(RM) -fv
-	dh_installinit -a
 	dh_installman -a
 	dh_link -a
 	dh_strip -a

Reply via email to