diff options
author | Loïc Minier <loic.minier@ubuntu.com> | 2014-05-20 15:10:08 +0200 |
---|---|---|
committer | Andrew Shadura <andrewsh@debian.org> | 2016-04-29 13:15:01 +0200 |
commit | 050f7022e0e9ec1b7e3ba74f72a317e097a667d6 (patch) | |
tree | 800cdf2837ab7d391056c7fb88dfacb7bb226108 | |
parent | 799f67ef983de760be6a97d99b78d568f9b8667b (diff) |
Unbreak GNU getopt test on some locales (LP: #1290069).
Use "getopt -T" to test for GNU getopt rather than
parsing the --version output which is locale specific.
-rwxr-xr-x | debian/fakeroot-pseudo.in | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/debian/fakeroot-pseudo.in b/debian/fakeroot-pseudo.in index 25df552..a6ab63f 100755 --- a/debian/fakeroot-pseudo.in +++ b/debian/fakeroot-pseudo.in @@ -32,15 +32,12 @@ FAKEROOT_BINDIR=/usr/bin KEEPSTATEDIR=0 -GETOPTEST=`getopt --version` -case $GETOPTEST in -getopt*) # GNU getopt +GETOPTTEST=`getopt -T` +if test "$?" -eq 4; then # 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 ? +else FAKE_TEMP=`getopt l:f:i:s:ub:vh "$@"` - ;; -esac +fi if [ "$?" -ne 0 ] then |