[Slapt-get-user] GPG error

Dave techjunkus at yahoo.com
Mon Jul 30 11:39:06 EDT 2007


--- Jason Woodward <woodwardj at jaos.org> wrote:

> Hi Dave,
> 
> > root: ~ > slapt-get --version
> > slapt-get version 0.9.12a
> > 
> > root: ~ > slapt-get --add-keys
> > Retrieving GPG key
> >
>
[ftp://ftp.slackware.com/pub/slackware/slackware-12.0/]...Cached
> > slapt-get: src/gpgme.c:204:
> > slapt_add_pkg_source_gpg_key: Assertion `e ==
> > GPG_ERR_NO_ERROR' failed.
> > 
> > Just wondering if this error was common.
> > slapt-get seems to function normally otherwise.
> > 
> > Thanks!
> 
> Can you apply the following patch to the 0.9.12
> source and let me know what happens?
> 
> 
> 
> Index: src/gpgme.c
>
===================================================================
> RCS file: /var/cvs/slapt-get/src/gpgme.c,v
> retrieving revision 1.2
> diff -u -r1.2 gpgme.c
> --- src/gpgme.c 27 Jun 2007 19:20:24 -0000      1.2
> +++ src/gpgme.c 29 Jul 2007 18:52:05 -0000
> @@ -201,7 +201,11 @@
>    assert (e == GPG_ERR_NO_ERROR);
>  
>    e = gpgme_op_import(ctx, key_data);
> -  assert (e == GPG_ERR_NO_ERROR);
> +  if (e)
> +  {
> +    fprintf (stderr, "GPGME error (%s): %s\n",
> gpgme_strsource (e), gpgme_strerror (e));
> +    exit;
> +  }
>  
>    import_result = gpgme_op_import_result(ctx);
>    if (import_result != NULL)
> 
> === end patch
> 
> 
> 
> 
> 
> --
> Jason Woodward
> woodwardj at jaos.org
> 
> 
> _______________________________________________
> Slapt-get-user mailing list
> Slapt-get-user at software.jaos.org
>
http://software.jaos.org/cgi-bin/mailman/listinfo/slapt-get-user
> 

Hi Jason,
I must be doing something wrong.
I've only ever applied patches to kernel source.
Please be patient with me :)
Here's what I see:

dave: ~/downloads/slapt-get/src > patch --dry-run
--verbose -p1< ../../new-patch 
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|
|Index: src/gpgme.c
|===================================================================
|RCS file: /var/cvs/slapt-get/src/gpgme.c,v
|retrieving revision 1.2
|diff -u -r1.2 gpgme.c
|--- src/gpgme.c 27 Jun 2007 19:20:24 -0000      1.2
|+++ src/gpgme.c 29 Jul 2007 18:52:05 -0000
--------------------------
Patching file gpgme.c using Plan A...
Hunk #1 FAILED at 201.
1 out of 1 hunk FAILED -- saving rejects to file
gpgme.c.rej
Hmm...  Ignoring the trailing garbage.
done




      ____________________________________________________________________________________
Park yourself in front of a world of choices in alternative vehicles. Visit the Yahoo! Auto Green Center.
http://autos.yahoo.com/green_center/ 


More information about the Slapt-get-user mailing list