Re: [oe] [OE-core][PATCH v6 2/4] gpg_sign: detach_sign: fix gpg > 2.1 STDIN file descriptor

2016-02-25 Thread Burton, Ross
On 25 February 2016 at 09:38, Markus Lehtonen < markus.lehto...@linux.intel.com> wrote: > Not sure I'd trust that either, version comparison logic is painful. > Something like this might be more resilient to interesting versioning: > > dots = versionstring.split('.') > assert len(dots) >2 > if

Re: [oe] [OE-core][PATCH v6 2/4] gpg_sign: detach_sign: fix gpg > 2.1 STDIN file descriptor

2016-02-25 Thread Burton, Ross
On 22 February 2016 at 13:37, Markus Lehtonen < markus.lehto...@linux.intel.com> wrote: > As far as I can tell get_gpg_version returns a string. However, you > compare that with a float. This should give more correct behavior: > +if gpg_ver > "2.1": > Not sure I'd trust that either,

[oe] [OE-core][PATCH v6 2/4] gpg_sign: detach_sign: fix gpg > 2.1 STDIN file descriptor

2016-02-19 Thread Ioan-Adrian Ratiu
Starting from v2.1 passing passwords directly to gpg does not work anymore [1], instead a loopback interface must be used otherwise gpg >2.1 will error out with: "gpg: signing failed: Inappropriate ioctl for device" gpg <2.1 does not work with the new --pinentry-mode arg and gives an invalid