Package: debian-policy
Version: 3.9.8.0
Severity: normal
Tags: patch

As invoke-rc.d is now (in stretch) in an essential package, I propose
simplifying the script example in policy to remove the test for its
existence (debhelper already does this):

--- /tmp/policy.sgml.orig       2017-01-25 11:35:34.787735041 +0000
+++ /tmp/policy.sgml    2017-01-25 11:36:39.075433047 +0000
@@ -7767,11 +7767,7 @@
              &lt;action&gt;</example> in their <prgn>postinst</prgn>
              and <prgn>prerm</prgn> scripts to:
              <example compact="compact">
-       if which invoke-rc.d >/dev/null 2>&1; then
-               invoke-rc.d <var>package</var> &lt;action&gt;
-       else
-               /etc/init.d/<var>package</var> &lt;action&gt;
-       fi
+       invoke-rc.d <var>package</var> &lt;action&gt;
              </example>
            </p>
 
Best wishes,

   Julian

-- System Information:
Debian Release: 9.0
  APT prefers jessie
  APT policy: (500, 'jessie'), (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.8.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_GB.UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

debian-policy depends on no packages.

debian-policy recommends no packages.

Versions of packages debian-policy suggests:
ii  doc-base  0.10.7

-- no debconf information
--- /tmp/policy.sgml.orig       2017-01-25 11:35:34.787735041 +0000
+++ /tmp/policy.sgml    2017-01-25 11:36:39.075433047 +0000
@@ -7767,11 +7767,7 @@
              &lt;action&gt;</example> in their <prgn>postinst</prgn>
              and <prgn>prerm</prgn> scripts to:
              <example compact="compact">
-       if which invoke-rc.d >/dev/null 2>&1; then
-               invoke-rc.d <var>package</var> &lt;action&gt;
-       else
-               /etc/init.d/<var>package</var> &lt;action&gt;
-       fi
+       invoke-rc.d <var>package</var> &lt;action&gt;
              </example>
            </p>
 

Reply via email to