I have sa-update running from cron every Sunday and on one of my
machines I get the output:

error: gpg required but not found!

I don't understand why I'm getting this.  The script says it ouputs
this when it can't find the gpg executable but it is there:

/usr/local/bin/gpg

Just like on all my other machines.  I'm thinking
Mail::SpamAssassin::Util::find_executable_in_env_path is not working
correctly.  The pertinent excerpt is:

my $GPGPath;
if ($GPG_ENABLED || $opt{'import'}) {
  # find GPG in the PATH
  # bug 4958: for *NIX it's "gpg", in Windows it's "gpg.exe"
  $GPGPath = 'gpg' . $Config{_exe};
  dbg("gpg: Searching for '$GPGPath'");

  if ($GPGPath =
Mail::SpamAssassin::Util::find_executable_in_env_path($GPGPath)) {
    dbg("gpg: found $GPGPath");

    # bug 5030: if GPGPath has a space, put it in quotes
    if ($GPGPath =~ / /) {
      $GPGPath =~ s/"/\\"/g;
      $GPGPath = qq/"$GPGPath"/;
      dbg("gpg: path changed to $GPGPath");
    }
  }
  else {
    die "error: gpg required but not found!\n";
  }

When I run the script at the command line I don't get any output.

Any ideas?

/juan

Reply via email to