[xml/sgml-commit] r891 - in /packages/docbook/trunk/debian: changelog docbook.postinst

dleidert-guest at users.alioth.debian.org dleidert-guest at users.alioth.debian.org
Tue Sep 25 02:01:27 UTC 2007


Author: dleidert-guest
Date: Tue Sep 25 02:01:27 2007
New Revision: 891

URL: http://svn.debian.org/wsvn/debian-xml-sgml/?sc=1&rev=891
Log:
* debian/docbook.postinst: fixed lintian warning
  possible-non-posix-code-in-maintainer-script.

Modified:
    packages/docbook/trunk/debian/changelog
    packages/docbook/trunk/debian/docbook.postinst

Modified: packages/docbook/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/debian-xml-sgml/packages/docbook/trunk/debian/changelog?rev=891&op=diff
==============================================================================
--- packages/docbook/trunk/debian/changelog (original)
+++ packages/docbook/trunk/debian/changelog Tue Sep 25 02:01:27 2007
@@ -5,6 +5,8 @@
   [ Daniel Leidert ]
   * debian/control: Homepage field transition.
     (Suggests): Added docbook-defguide.
+  * debian/docbook.postinst: fixed lintian warning
+    possible-non-posix-code-in-maintainer-script.
   * debian/README.Debian: Removed or replaced references to non-existing
     packages.
   * debian/watch: Added watch file.

Modified: packages/docbook/trunk/debian/docbook.postinst
URL: http://svn.debian.org/wsvn/debian-xml-sgml/packages/docbook/trunk/debian/docbook.postinst?rev=891&op=diff
==============================================================================
--- packages/docbook/trunk/debian/docbook.postinst (original)
+++ packages/docbook/trunk/debian/docbook.postinst Tue Sep 25 02:01:27 2007
@@ -23,7 +23,7 @@
 
     # look for old legacy crap
     for CAT in /etc/sgml.catalog /etc/sgml/transitional.cat /usr/lib/sgml/transitional.cat; do
-        if [ -f $CAT -a ! -h $CAT ]; then
+        if [ -f $CAT ] && [ ! -h $CAT ] ; then
             if grep -q "^$OLDSIGNBEG" $CAT && grep -q "^$OLDSIGNEND" $CAT; then
                 echo "cleaning out legacy docbook DTD entries from $CAT (OLDSIGN)"
                 sed -e "/$OLDSIGNBEG/,/$OLDSIGNEND/d" < $CAT > ${CAT}.new




More information about the debian-xml-sgml-commit mailing list