]> git.donarmstrong.com Git - debhelper.git/blobdiff - autoscripts/postrm-menu-method
r1586: * dh_python: patch from Josselin to fix generated depends. Closes: #204717
[debhelper.git] / autoscripts / postrm-menu-method
index 2e0faed72bb04a91a56a50f41ed2bb79d5f0dc7f..ffa1e4862bd35a3cf125f351d701f28033e4dff8 100644 (file)
@@ -1,3 +1,3 @@
 inst=/etc/menu-methods/#PACKAGE#
-if [ "$1" = "remove" -a -f "$inst" ]; then chmod a-x $inst ; fi
-if [ -x /usr/bin/update-menus ]; then update-menus; fi
+if [ "$1" = "remove" ] && [ -f "$inst" ]; then chmod a-x $inst ; fi
+if [ -x "`which update-menus 2>/dev/null`" ]; then update-menus ; fi