Skip to Content.
Sympa Menu

sm-grimoire-bugs - [SM-Grimoire-Bugs] [Bug 14705] linux gpg check fail...

sm-grimoire-bugs AT lists.ibiblio.org

Subject: SourceMage Grimoire Bug List

List archive

Chronological Thread  
  • From: bugzilla-daemon AT bugs.sourcemage.org
  • To: sm-grimoire-bugs AT lists.ibiblio.org
  • Subject: [SM-Grimoire-Bugs] [Bug 14705] linux gpg check fail...
  • Date: 2 Sep 2008 13:13:04 -0000

http://bugs.sourcemage.org/show_bug.cgi?id=14705





--- Comment #2 from mikael.morin AT tele2.fr 2008-09-02 08:13:03 ---
Created an attachment (id=7113)
--> (http://bugs.sourcemage.org/attachment.cgi?id=7113)
The superdebugging log (I love that feature)

I was a bit lazy yesterday to investigate the bug.
Now I'm as hot as I could be.

The thing is that the actual gpg checking doesn't fail:
(lines 105533-105539)
++ gpg --no-default-keyring --always-trust --keyring
/var/lib/sorcery/codex/test/kernel.gpg --batch --verbose --verify
/var/spool/sorcery/linux-2.6.26.tar.bz2.sign
/var/spool/sorcery/linux-2.6.26.tar.bz2
++ rc=0
++ [[ 0 != 0 ]]
+++ awk '/digest algorithm/ { print tolower($NF) }'
/root/linux-2.6.26.tar.bz2.gpgout
+++ sort -u
++ algo=
++ rm /root/linux-2.6.26.tar.bz2.gpgout

As rc=0, gpg succeeds.
However the algo variable is not set properly makes sorcery think there is an
error.
Here is what is in my /root/linux-2.6.26.tar.bz2.gpgout file :

gpg: en-tête d'armure: Version: GnuPG v1.4.9 (GNU/Linux)
gpg: en-tête d'armure: Comment: See http://www.kernel.org/signature.html for
info
gpg: Signature faite le lun 14 jui 2008 00:56:03 CEST avec la clé DSA ID
517D0F0E
gpg: Bonne signature de « Linux Kernel Archives Verification Key
<ftpadmin AT kernel.org> »
gpg: ATTENTION: Utilisation d'une clé sans confiance !
gpg: signature binaire, algorithme de hachage SHA1



The problem is the LANG environment variable which changes the output of gpg
and makes awk fails to guess the algorithm.

The fix would be to locally unset the LANG environment.
This should be done at the beginning of the cast as it might break other
things
as well.
I don't know much about the code though so I leave this to gurus.

Cheers


--
Configure bugmail: http://bugs.sourcemage.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



Archive powered by MHonArc 2.6.24.

Top of Page