Bug#533636: defoma: remove "/usr/bin" PATH from debhelper scripts
The patch is still crap!
Please use the "which" command as in the appended patch.
Cheers,
Fabian
--
Dipl.-Phys. Fabian Greffrath
Ruhr-Universität Bochum
Lehrstuhl für Energieanlagen und Energieprozesstechnik (LEAT)
Universitätsstr. 150, IB 3/134
D-44780 Bochum
Telefon: +49 (0)234 / 32-26334
Fax: +49 (0)234 / 32-14227
E-Mail: greffrath@leat.ruhr-uni-bochum.de
diff -urN defoma-0.11.10/debhelper-files/postinst-defoma defoma-0.11.10.modified/debhelper-files/postinst-defoma
--- defoma-0.11.10/debhelper-files/postinst-defoma 2009-06-25 19:19:33.000000000 +0900
+++ defoma-0.11.10.modified/debhelper-files/postinst-defoma 2009-06-25 19:37:08.000000000 +0900
@@ -1,5 +1,5 @@
if [ "$1" = "configure" ]; then
- test -x /usr/bin/defoma-app && defoma-app update #PACKAGE#
+ test -x `which defoma-app` && defoma-app update #PACKAGE#
fi
diff -urN defoma-0.11.10/debhelper-files/postinst-defoma-hints defoma-0.11.10.modified/debhelper-files/postinst-defoma-hints
--- defoma-0.11.10/debhelper-files/postinst-defoma-hints 2009-06-25 19:19:33.000000000 +0900
+++ defoma-0.11.10.modified/debhelper-files/postinst-defoma-hints 2009-06-25 19:37:08.000000000 +0900
@@ -1,4 +1,4 @@
FILE='/etc/defoma/hints/#PACKAGE#.hints'
if [ "$1" = configure ]; then
- test -x /usr/bin/defoma-font && defoma-font reregister-all $FILE
+ test -x `which defoma-font` && defoma-font reregister-all $FILE
fi
diff -urN defoma-0.11.10/debhelper-files/prerm-defoma defoma-0.11.10.modified/debhelper-files/prerm-defoma
--- defoma-0.11.10/debhelper-files/prerm-defoma 2009-06-25 19:19:33.000000000 +0900
+++ defoma-0.11.10.modified/debhelper-files/prerm-defoma 2009-06-25 19:37:08.000000000 +0900
@@ -1,8 +1,8 @@
case "$1" in
upgrade)
- test -x /usr/bin/defoma-app && defoma-app clean #PACKAGE#
+ test -x `which defoma-app` && defoma-app clean #PACKAGE#
;;
remove)
- test -x /usr/bin/defoma-app && defoma-app purge #PACKAGE#
+ test -x `which defoma-app` && defoma-app purge #PACKAGE#
;;
esac
diff -urN defoma-0.11.10/debhelper-files/prerm-defoma-hints defoma-0.11.10.modified/debhelper-files/prerm-defoma-hints
--- defoma-0.11.10/debhelper-files/prerm-defoma-hints 2009-06-25 19:19:33.000000000 +0900
+++ defoma-0.11.10.modified/debhelper-files/prerm-defoma-hints 2009-06-25 19:37:08.000000000 +0900
@@ -1,4 +1,4 @@
FILE='/etc/defoma/hints/#PACKAGE#.hints'
if [ "$1" = remove ]; then
- test -x /usr/bin/defoma-font && defoma-font purge-all $FILE
+ test -x `which defoma-font` && defoma-font purge-all $FILE
fi
Reply to: