[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#888437: debian-policy: Several example scripts are not valid.



Package: debian-policy
Followup-For: Bug #888437
Tags: patch

This is the patch, by comparing to the Policy 3.9.8.0
From 67d8f67c1eeb03463bc690dcf5c9972d6618219a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Yao=20Wei=20=28=E9=AD=8F=E9=8A=98=E5=BB=B7=29?=
 <mwei@lxde.org>
Date: Fri, 26 Jan 2018 00:00:20 +0800
Subject: [PATCH] fix misconversions of example scripts

---
 policy/ch-files.rst             | 2 +-
 policy/ch-maintainerscripts.rst | 2 +-
 policy/ch-opersys.rst           | 4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/policy/ch-files.rst b/policy/ch-files.rst
index 22660bd..90ae58a 100644
--- a/policy/ch-files.rst
+++ b/policy/ch-files.rst
@@ -684,7 +684,7 @@ dynamically allocated id:
         # only do something when no setting exists
         if ! dpkg-statoverride --list $i >/dev/null 2>&1; then
             #include: debconf processing, question about foo and bar
-            if [ "$RET" = "tru.. [#] ; then
+            if [ "$RET" = "true" ] ; then
                 dpkg-statoverride --update --add sysuser root 4755 $i
             fi
         fi
diff --git a/policy/ch-maintainerscripts.rst b/policy/ch-maintainerscripts.rst
index 5e097e5..707f2d4 100644
--- a/policy/ch-maintainerscripts.rst
+++ b/policy/ch-maintainerscripts.rst
@@ -567,7 +567,7 @@ Details of removal and/or configuration purging
 
    ::
 
-       if [ "$1" = pur.. [#] && [ -e /usr/share/debconf/confmodule ]; then
+       if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
            . /usr/share/debconf/confmodule db_purge
        fi
 
diff --git a/policy/ch-opersys.rst b/policy/ch-opersys.rst
index 7ac1b4e..6735667 100644
--- a/policy/ch-opersys.rst
+++ b/policy/ch-opersys.rst
@@ -142,7 +142,7 @@ For example, the ``emacsen-common`` package could contain something like
 
 ::
 
-    if [ ! -e /usr/local/share/ema.. [#]; then
+    if [ ! -e /usr/local/share/emacs ]; then
         if mkdir /usr/local/share/emacs 2>/dev/null; then
             if chown root:staff /usr/local/share/emacs; then
                 chmod 2775 /usr/local/share/emacs || true
@@ -533,7 +533,7 @@ script::
 
 and in your ``postrm``::
 
-    if [ "$1" = pur.. [#]; then
+    if [ "$1" = purge ]; then
         update-rc.d package remove
     fi
 
-- 
2.15.1

Attachment: signature.asc
Description: PGP signature


Reply to: