package xodo
tag 289732 patch
thanks
Hi,
Your problem would have been solved (and future problems surely will)
simply by using debhelper, which provides centralized ways of
changing packaging things based on discussions, avoids duplication of
code, etc.
The attached patches make your maintainer scripts behave just like a
package using debhelper would, therefore fixing this bug, since it
would be considered "The Right Way (tm)".
Hope it helps =)
Best regards,
--
Guilherme de S. Pastore (fatalerror)
<[EMAIL PROTECTED]>
--- debian/postinst 2005-01-15 10:02:17.000000000 -0200
+++ debian/postinst.new 2005-01-15 10:13:30.000000000 -0200
@@ -2,10 +2,12 @@
if [ "$1" = "configure" ]; then
- if [ -d /usr/doc -a ! -e /usr/doc/xodo -a -d /usr/share/doc/xodo ]; then
- ln -sf ../share/doc/xodo /usr/doc/xodo
- fi
+ if [ -d /usr/doc -a ! -e /usr/doc/xodo -a -d /usr/share/doc/xodo ]; then
+ ln -sf ../share/doc/xodo /usr/doc/xodo
+ fi
- if command -v update-menus >/dev/null 2>&1; then update-menus; fi
+ if [ -x "`which update-menus 2>/dev/null`" ]; then
+ update-menus
+ fi
fi
--- debian/postrm 2005-01-15 10:02:17.000000000 -0200
+++ debian/postrm.new 2005-01-15 10:14:17.000000000 -0200
@@ -1,3 +1,3 @@
#!/bin/sh -e
-if command -v update-menus >/dev/null 2>&1; then update-menus; fi
+if [ -x "`which update-menus 2>/dev/null`" ]; then update-menus ; fi
\ No newline at end of file