[elbe-devel] [PATCH 03/10] gpg: remove pyme fallback

Torben Hohn torben.hohn at linutronix.de
Wed Apr 3 17:34:00 CEST 2019


On Wed, Apr 03, 2019 at 12:34:51PM +0200, Manuel Traut wrote:
> pyme doesn't provide a keygrip that is needed to unlock keys in the
> gpg-agent. Therefore remove the fallback and always use python-gpg.
> 
> Signed-off-by: Manuel Traut <manut at linutronix.de>

Reviewed-by: Torben Hohn <torben.hohn at linutronix.de>

> ---
>  debian/control           | 2 +-
>  elbepack/debinstaller.py | 6 +-----
>  elbepack/egpg.py         | 8 ++------
>  elbepack/finetuning.py   | 7 +------
>  4 files changed, 5 insertions(+), 18 deletions(-)
> 
> diff --git a/debian/control b/debian/control
> index 4749a5d3..057023fa 100644
> --- a/debian/control
> +++ b/debian/control
> @@ -57,7 +57,7 @@ Depends: ${misc:Depends},
>    python (>= 2.7~),
>    python-lxml,
>    python-apt,
> -  python-pyme|python-gpg,
> +  python-gpg,
>    python-libvirt,
>    wget,
>    cpio
> diff --git a/elbepack/debinstaller.py b/elbepack/debinstaller.py
> index 6bd166ef..0fa8fffa 100644
> --- a/elbepack/debinstaller.py
> +++ b/elbepack/debinstaller.py
> @@ -23,11 +23,7 @@ except ImportError:
>      import urllib2
>      urlopen = urllib2.urlopen
>  
> -try:
> -    from gpg import core
> -except ImportError:
> -    from pyme import core
> -
> +from gpg import core
>  from shutil import copyfileobj, copyfile
>  
>  from elbepack.filesystem import TmpdirFilesystem
> diff --git a/elbepack/egpg.py b/elbepack/egpg.py
> index 32b07402..6d9072e2 100644
> --- a/elbepack/egpg.py
> +++ b/elbepack/egpg.py
> @@ -9,12 +9,8 @@ from __future__ import print_function
>  
>  import os
>  
> -try:
> -    from gpg import core
> -    from gpg.constants import sigsum, sig
> -except ImportError:
> -    from pyme import core
> -    from pyme.constants import sigsum, sig
> +from gpg import core
> +from gpg.constants import sigsum, sig
>  
>  from elbepack.filesystem import hostfs
>  
> diff --git a/elbepack/finetuning.py b/elbepack/finetuning.py
> index 5b0cd734..5f2b0010 100644
> --- a/elbepack/finetuning.py
> +++ b/elbepack/finetuning.py
> @@ -11,12 +11,7 @@ from __future__ import print_function
>  import os
>  
>  from shutil import rmtree
> -
> -try:
> -    from gpg import core
> -except ImportError:
> -    from pyme import core
> -
> +from gpg import core
>  from apt.package import FetchError
>  
>  from elbepack.repomanager import UpdateRepo
> -- 
> 2.20.1
> 

-- 
Torben Hohn
Linutronix GmbH | Bahnhofstrasse 3 | D-88690 Uhldingen-Mühlhofen
Phone: +49 7556 25 999 18; Fax.: +49 7556 25 999 99

Hinweise zum Datenschutz finden Sie hier (Informations on data privacy 
can be found here): https://linutronix.de/kontakt/Datenschutz.php

Linutronix GmbH | Firmensitz (Registered Office): Uhldingen-Mühlhofen | 
Registergericht (Registration Court): Amtsgericht Freiburg i.Br., HRB700 
806 | Geschäftsführer (Managing Directors): Heinz Egger, Thomas Gleixner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.linutronix.de/pipermail/elbe-devel/attachments/20190403/5a6bd03c/attachment.sig>


More information about the elbe-devel mailing list