~sourcemage/sorcery

7aafabba713f654279b7a2a0b7ccf8f9c72170c1 — Jaka Kranjc 15 years ago 40a7469
libgpg: set LC_ALL=C for commands output of which we parse #14705
2 files changed, 4 insertions(+), 3 deletions(-)

M ChangeLog
M var/lib/sorcery/modules/libgpg
M ChangeLog => ChangeLog +1 -0
@@ 5,6 5,7 @@
	  hash, since we're removing spells from to_cast when things go awry
	* libdepends: only put the broken spell into the failed list, "drop"
	  the dependees and dependencies
	* libgpg: set LC_ALL=C for commands output of which we parse #14705

2008-09-01 Jaka Kranjc <lynxlynxlynx@sourcemage.org>
	* cast, libspell, libsorcery, libcast, libsummon: fixed bug #2209

M var/lib/sorcery/modules/libgpg => var/lib/sorcery/modules/libgpg +3 -3
@@ 52,7 52,7 @@ function gpg_verify_signature() { # $1 sig $2 file $3 pubring $4 algo var
    return 200
  else
    local output=$TMP_DIR/$(smgl_basename $file).gpgout
    gpg --no-default-keyring  \
    LC_ALL=C gpg --no-default-keyring  \
               --always-trust        \
               --keyring $keyring    \
               --batch               \


@@ 338,7 338,7 @@ function gpg_user_query() {
function gpg_hashsum() {
  local algorithm=$1
  local file=$2
  gpg --print-md "$algorithm" "$file"| tr -d '\n '  |cut -f2 -d:|
  LC_ALL=C gpg --print-md "$algorithm" "$file"| tr -d '\n '  |cut -f2 -d:|
                                       tr 'A-F' 'a-f'|tr -d '\n'
  echo "  $file"
}


@@ 350,7 350,7 @@ function gpg_hashsum() {
## This assumes the caller has already verified that gpg is installed.
#---------------------------------------------------------------------
function gpg_get_hashes() {
  gpg --version 2> /dev/null | grep '^Hash' | awk -F: '{ print $2 }' | tr , ' ' | tr 'A-Z' 'a-z'
  LC_ALL=C gpg --version 2> /dev/null | grep '^Hash' | awk -F: '{ print $2 }' | tr , ' ' | tr 'A-Z' 'a-z'
}

#---------------------------------------------------------------------