2013/11/17 Ian Jackson <[email protected]>:
> Javi Merino writes ("Bug#729788: dgit doesn't work if the user has set LANG
> in their environment"):
>> When ssh'ing to coccia, ssh preserves the environment, so the reply
>> from the database is in the user's language instead of English and
>> dgit fails to parse it:
>>
>> $ dgit clone dgit
>> (1 fila) ? at /usr/bin/dgit line 669.
>> $ LANG=C dgit clone dgit
>> canonical suite name for unstable is sid
>> [...]
>>
>> I guess dgit should set LANG=C when doing the ssh.
>
> Thanks for the report. Sorry about that. I think you have the right
> idea.
>
> Can you try this patch (below) applied to your dgit ?
>
> NB that it's probably going to fall over right now just after the
> archive query, because alioth (git.debian.org) is down.
>
> But I think the patch will enable it to get further, and if you send
> me the -D output I'll be able to confirm whether the patch has fixed
> the problem.
Yes, that patch fixes it. Alioth is down but now dgit gets to the
point of trying to access alioth, so the patch solves the issue:
$ printenv LANG
es_ES.UTF-8
$ dgit -D clone dgit
| ssh coccia.debian.org 'export LANG=C; psql -A service=projectb -c
'\'' SELECT suite.codename
FROM suite where
suite_name='\'''\\''\'''\''unstable'\'''\\''\'''\'' or
codename='\'''\\''\'''\''unstable'\'''\\''\'''\'';
'\'''
>|codename|
>|sid|
>|(1 row)|
canonical suite name for unstable is sid
CD dgit
+ git init -q
+ git config remote.dgit.fetch '+refs/dgit/*:refs/remotes/dgit/dgit/*'
+ git remote add origin 'git+ssh://git.debian.org/git/dgit-repos/repos/dgit.git'
| ssh git.debian.org ' set -e; cd /git/dgit-repos/repos; if test -d
dgit.git; then echo 1; else echo 0; fi'
bash: line 0: cd: /git/dgit-repos/repos: No such file or directory
=>!256
ssh: failed command: ssh git.debian.org ' set -e; cd
/git/dgit-repos/repos; if test -d dgit.git; then echo 1; else echo 0;
fi'
dgit: subprocess failed with error exit status 1
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]