File: remove-which-call-flags.patch

package info (click to toggle)
daps 3.3.2%2Bcleaned1-6.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,484 kB
  • sloc: xml: 9,773; sh: 3,059; python: 1,322; lisp: 380; makefile: 240
file content (14 lines) | stat: -rw-r--r-- 552 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
This patch remove the --skip-alias --skip-functions flags to the which command
call because the Debian which program does not support them.

--- a/bin/daps-xmlformat.in
+++ b/bin/daps-xmlformat.in
@@ -20,7 +20,7 @@
 # take the first one that exists
 #
 for _BINARY in xmlformat xmlformat.pl xmlformat.rb; do
-    XMLFORMAT_CMD="$(which --skip-alias --skip-functions "$_BINARY" 2>/dev/null)" && break
+    XMLFORMAT_CMD="$(which "$_BINARY" 2>/dev/null)" && break
 done
 
 _XMLF_VERSION=$($XMLFORMAT_CMD --version 2>/dev/null | head -n1 | cut -d' ' -f2)