aports/main/fakeroot/busybox-getopt.patch
2014-11-06 11:05:14 +00:00

15 lines
388 B
Diff

--- ./scripts/fakeroot.in.orig
+++ ./scripts/fakeroot.in
@@ -43,9 +43,9 @@
libfound=no
-GETOPTEST=`getopt --version`
+GETOPTEST=`getopt --version 2>&1 | head -n2`
case $GETOPTEST in
-getopt*) # GNU getopt
+getopt*|*BusyBox*) # GNU getopt
FAKE_TEMP=`getopt -l lib: -l faked: -l unknown-is-real -l fd-base: -l version -l help -- +l:f:i:s:ub:vh "$@"`
;;
*) # POSIX getopt ?